Contao\Config::has PHP Method

has() public static method

Check whether a configuration value exists
public static has ( string $strKey ) : boolean
$strKey string The short key
return boolean True if the configuration value exists
    public static function has($strKey)
    {
        return array_key_exists($strKey, $GLOBALS['TL_CONFIG']);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Checks whether a configuration value exists.
  *
  * @param string $key The short key
  *
  * @return bool True if the configuration value exists
  */
 public function has($key)
 {
     return Config::has($key);
 }