function State::__construct
Same name in this branch
- 9 core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
Same name in other branches
- 8.9.x core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 8.9.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
- 10 core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 10 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
- 11.x core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 11.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
Constructs a State object.
Parameters
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use.
File
-
core/
lib/ Drupal/ Core/ State/ State.php, line 32
Class
- State
- Provides the state system using a key value store.
Namespace
Drupal\Core\StateCode
public function __construct(KeyValueFactoryInterface $key_value_factory) {
$this->keyValueStore = $key_value_factory->get('state');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.