Contao\Config::delete PHP Метод

delete() публичный Метод

Remove a configuration variable
public delete ( string $strKey )
$strKey string The full variable name
    public function delete($strKey)
    {
        $this->markModified();
        unset($this->arrData[$strKey]);
    }

Usage Example

Пример #1
0
 /**
  * Removes a configuration variable.
  *
  * @param string $key The full variable name
  */
 public function delete($key)
 {
     $this->config->delete($key);
 }