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\State
Members
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. |
Please login to continue.