You are here

public function NullStorageExpirable::get in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php \Drupal\Core\KeyValueStore\NullStorageExpirable::get()

Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::get().

Overrides KeyValueStoreInterface::get

File

lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php, line 46
Contains \Drupal\Core\KeyValueStore\NullStorageExpirable.

Class

NullStorageExpirable
Defines a null key/value store implementation.

Namespace

Drupal\Core\KeyValueStore

Code

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