function LocaleProjectStorageInterface::get
Same name in other branches
- 9 core/modules/locale/src/LocaleProjectStorageInterface.php \Drupal\locale\LocaleProjectStorageInterface::get()
- 8.9.x core/modules/locale/src/LocaleProjectStorageInterface.php \Drupal\locale\LocaleProjectStorageInterface::get()
- 11.x 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\localeCode
public function get($key, $default = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.