You are here

public function LingotekFake::getEditable in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  2. 3.0.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  3. 3.1.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  4. 3.2.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  5. 3.3.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  6. 3.4.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  7. 3.5.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  8. 3.6.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  9. 3.7.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()
  10. 3.8.x tests/modules/lingotek_test/src/LingotekFake.php \Drupal\lingotek_test\LingotekFake::getEditable()

File

tests/modules/lingotek_test/src/LingotekFake.php, line 94

Class

LingotekFake

Namespace

Drupal\lingotek_test

Code

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);
}