You are here

public function LocaleProjectStorageInterface::get in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/src/LocaleProjectStorageInterface.php \Drupal\locale\LocaleProjectStorageInterface::get()
  2. 9 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.

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);