You are here

public function LingotekFakeConfigWrapper::clear in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 3.3.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
  2. 3.5.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
  3. 3.6.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
  4. 3.7.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
  5. 3.8.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()

Unsets a value in this configuration object.

Parameters

string $key: Name of the key whose value should be unset.

Return value

$this The configuration object.

Overrides Config::clear

File

tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php, line 176

Class

LingotekFakeConfigWrapper

Namespace

Drupal\lingotek_test

Code

public function clear($key) {
  if (!$this->config instanceof ImmutableConfig) {
    parent::clear($key);
    $this->config
      ->clear($key);
  }
  return $this;
}