public function KeyValueStoreInterface::get

Returns the stored value for a given key.

Parameters

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

Return value

mixed The stored value, or NULL if no value exists.

2 methods override KeyValueStoreInterface::get()
NullStorageExpirable::get in drupal/core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::get().
StorageBase::get in drupal/core/lib/Drupal/Core/KeyValueStore/StorageBase.php
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::get().

File

drupal/core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 32
Contains Drupal\Core\KeyValueStore\KeyValueStoreInterface.

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function get($key);