public function Lingotek::get in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 8.2 src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 4.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.1.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.2.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.3.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.5.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.6.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.7.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
- 3.8.x src/Lingotek.php \Drupal\lingotek\Lingotek::get()
Gets data from the configuration object.
Parameters
string $key: A string that maps to a key within the configuration data. For instance in the following configuration array:
array(
'foo' => array(
'bar' => 'baz',
),
);
A key of 'foo.bar' would return the string 'baz'. However, a key of 'foo' would return array('bar' => 'baz'). If no key is specified, then the entire data array is returned.
Return value
mixed The data that was requested.
Overrides LingotekInterface::get
Deprecated
in lingotek:3.0.1 and is removed from lingotek:4.0.0. Use configuration or configuration services directly.
See also
\Drupal\lingotek\LingotekConfigurationServiceInterface
File
- src/
Lingotek.php, line 111
Class
- Lingotek
- The connecting class between Drupal and Lingotek
Namespace
Drupal\lingotekCode
public function get($key) {
return $this->configFactory
->get(static::SETTINGS)
->get($key);
}