Back to HTMLHelper class

Method isRegistered

public static bool
isRegistered
(mixed $key)
Test if the key is registered.
Parameters
  • string $key The name of the key
Returns
  • bool True if the key is registered.
Since
  • 1.6
Class: HTMLHelper
Project: Joomla

Method isRegistered - Source code

/**
 * Test if the key is registered.
 *
 * @param   string  $key  The name of the key
 *
 * @return  boolean  True if the key is registered.
 *
 * @since   1.6
 */
public static function isRegistered($key)
{
    list($key) = static::extract($key);
    return isset(static::$registry[$key]);
}