public function LingotekFakeConfigWrapper::clear in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 3.3.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
- 3.4.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
- 3.5.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
- 3.6.x tests/modules/lingotek_test/src/LingotekFakeConfigWrapper.php \Drupal\lingotek_test\LingotekFakeConfigWrapper::clear()
- 3.7.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 175
Class
Namespace
Drupal\lingotek_testCode
public function clear($key) {
if (!$this->config instanceof ImmutableConfig) {
parent::clear($key);
$this->config
->clear($key);
}
return $this;
}