public function KeyValueStoreInterface::set in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::set()
- 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::set()
Saves a value for a given key.
Parameters
string $key: The key of the data to store.
mixed $value: The data to store.
File
- core/
lib/ Drupal/ Core/ KeyValueStore/ KeyValueStoreInterface.php, line 72
Class
- KeyValueStoreInterface
- Defines the interface for key/value store implementations.
Namespace
Drupal\Core\KeyValueStoreCode
public function set($key, $value);