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; }
Please login to continue.