public function LocaleProjectStorageInterface::get in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/src/LocaleProjectStorageInterface.php \Drupal\locale\LocaleProjectStorageInterface::get()
- 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\localeCode
public function get($key, $default = NULL);