You are here

public function LocaleProjectStorageInterface::get in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/LocaleProjectStorageInterface.php \Drupal\locale\LocaleProjectStorageInterface::get()
  2. 10 core/modules/locale/src/LocaleProjectStorageInterface.php \Drupal\locale\LocaleProjectStorageInterface::get()

Returns the stored value for a given key.

Parameters

string $key: The key of the data to retrieve.

mixed $default: The default value to use if the key is not found.

Return value

mixed The stored value, or the default value if no value exists.

1 method overrides LocaleProjectStorageInterface::get()
LocaleProjectStorage::get in core/modules/locale/src/LocaleProjectStorage.php
Returns the stored value for a given key.

File

core/modules/locale/src/LocaleProjectStorageInterface.php, line 21

Class

LocaleProjectStorageInterface
Defines the locale project storage interface.

Namespace

Drupal\locale

Code

public function get($key, $default = NULL);