function Config::clear

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::clear()
  2. 10 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::clear()
  3. 11.x core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::clear()

Overrides ConfigBase::clear

1 method overrides Config::clear()
ImmutableConfig::clear in core/lib/Drupal/Core/Config/ImmutableConfig.php
Unsets a value in this configuration object.

File

core/lib/Drupal/Core/Config/Config.php, line 192

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function clear($key) {
    parent::clear($key);
    $this->resetOverriddenData();
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.