public function LingotekFake::getEditable in Lingotek Translation 3.0.x
Same name and namespace in other branches
- 8.2 tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 4.0.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.1.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.2.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.3.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.4.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.5.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.6.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.7.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
- 3.8.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
Gets data from the mutable configuration object. Returns an mutable configuration object for a given name.
Should not be used for config that will have runtime effects. Therefore it is always loaded override free.
Parameters
string $key: A string that maps to a key within the configuration data.
Return value
mixed The data that was requested.
Overrides LingotekInterface::getEditable
Deprecated
in lingotek:3.0.1 and is removed from lingotek:4.0.0. Use configuration or configuration services directly.
See also
::get
\Drupal\lingotek\LingotekConfigurationServiceInterface
File
- tests/
modules/ lingotek_test/ src/ LingotekFake.php, line 94
Class
Namespace
Drupal\lingotek_testCode
public function getEditable($key) {
if (in_array($key, [
'default.community',
'default.project',
'default.value',
'default.workflow',
]) && ($output = $this->config
->getEditable($this::SETTINGS)
->get($key))) {
return $output;
}
return $this
->get($key);
}