Contao\Config::remove PHP Method

remove() public static method

Permanently remove a configuration value
public static remove ( string $strKey )
$strKey string The short key or full variable name
    public static function remove($strKey)
    {
        $objConfig = static::getInstance();
        if (strncmp($strKey, '$GLOBALS', 8) !== 0) {
            $strKey = "\$GLOBALS['TL_CONFIG']['{$strKey}']";
        }
        $objConfig->delete($strKey);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Permanently removes a configuration value.
  *
  * @param string $key The short key or full variable name
  */
 public function remove($key)
 {
     Config::remove($key);
 }
All Usage Examples Of Contao\Config::remove