You are here

public function LingotekInterface::get in Lingotek Translation 3.4.x

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

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

2 methods override LingotekInterface::get()
Lingotek::get in src/Lingotek.php
Gets data from the configuration object.
LingotekFake::get in tests/modules/lingotek_test/src/LingotekFake.php
Gets data from the configuration object.

File

src/LingotekInterface.php, line 41

Class

LingotekInterface

Namespace

Drupal\lingotek

Code

public function get($key);