MemoryStorage::set

public MemoryStorage::set($key, $value)

Saves a value for a given key.

Parameters

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

mixed $value: The data to store.

Overrides KeyValueStoreInterface::set

File

core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 48

Class

MemoryStorage
Defines a default key/value store implementation.

Namespace

Drupal\Core\KeyValueStore

Code

public function set($key, $value) {
  $this->data[$key] = $value;
}
doc_Drupal
2016-10-29 09:25:54
Comments
Leave a Comment

Please login to continue.