Saves a value for a given key.
Parameters
string $key:
The key of the data to store.
mixed $value:
The data to store.
File
- drupal/core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 63
- Contains Drupal\Core\KeyValueStore\KeyValueStoreInterface.
Class
- KeyValueStoreInterface
- Defines the interface for key/value store implementations.
Namespace
Drupal\Core\KeyValueStore
Code
public function set($key, $value);