You are here

public function LingotekFake::get in Lingotek Translation 3.7.x

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

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

Class

LingotekFake

Namespace

Drupal\lingotek_test

Code

public function get($key) {
  throw new \Exception('This method is deprecated, so should never be called from our own code.');
}