function StateInterface::set
Same name in other branches
- 9 core/lib/Drupal/Core/State/StateInterface.php \Drupal\Core\State\StateInterface::set()
- 8.9.x core/lib/Drupal/Core/State/StateInterface.php \Drupal\Core\State\StateInterface::set()
- 11.x core/lib/Drupal/Core/State/StateInterface.php \Drupal\Core\State\StateInterface::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/ State/ StateInterface.php, line 44
Class
- StateInterface
- Defines the interface for the state system.
Namespace
Drupal\Core\StateCode
public function set($key, $value);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.