Back to HTMLHelper class

Method getServiceRegistry

public static \Joomla\CMS\HTML\Registry
getServiceRegistry
()
Retrieves the service registry.
Returns
  • \Joomla\CMS\HTML\Registry
Since
  • 4.0.0
Class: HTMLHelper
Project: Joomla

Method getServiceRegistry - Source code

/**
 * Retrieves the service registry.
 *
 * @return  Registry
 *
 * @since   4.0.0
 */
public static function getServiceRegistry() : Registry
{
    if (!static::$serviceRegistry) {
        static::$serviceRegistry = Factory::getContainer()->get(Registry::class);
    }
    return static::$serviceRegistry;
}