class State
Provides the state system using a key value store.
Hierarchy
- class \Drupal\Core\State\State implements StateInterface
File
- core/lib/Drupal/Core/State/State.php, line 10
Namespace
Drupal\Core\StateMembers
| Name | Modifiers | Type | Description |
|---|---|---|---|
| State::$cache | protected | property | Static state cache. |
| State::$keyValueStore | protected | property | The key value store to use. |
| State::delete | public | function | Deletes an item. Overrides StateInterface::delete |
| State::deleteMultiple | public | function | Deletes multiple items. Overrides StateInterface::deleteMultiple |
| State::get | public | function | Returns the stored value for a given key. Overrides StateInterface::get |
| State::getMultiple | public | function | Returns the stored key/value pairs for a given set of keys. Overrides StateInterface::getMultiple |
| State::resetCache | public | function | Resets the static cache. Overrides StateInterface::resetCache |
| State::set | public | function | Saves a value for a given key. Overrides StateInterface::set |
| State::setMultiple | public | function | Saves key/value pairs. Overrides StateInterface::setMultiple |
| State::__construct | function | Constructs a State object. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!State!State.php/class/State/8.1.x