You are here

public function Lingotek::getEditable in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  2. 4.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  3. 3.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  4. 3.1.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  5. 3.2.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  6. 3.3.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  7. 3.5.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  8. 3.6.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  9. 3.7.x src/Lingotek.php \Drupal\lingotek\Lingotek::getEditable()
  10. 3.8.x src/Lingotek.php \Drupal\lingotek\Lingotek::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

src/Lingotek.php, line 118

Class

Lingotek
The connecting class between Drupal and Lingotek

Namespace

Drupal\lingotek

Code

public function getEditable($key) {
  return $this->configFactory
    ->getEditable(static::SETTINGS)
    ->get($key);
}