State::__construct(KeyValueFactoryInterface $key_value_factory)
Constructs a State object.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use.
function __construct(KeyValueFactoryInterface $key_value_factory) { $this->keyValueStore = $key_value_factory->get('state'); }
© 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/function/State::__construct/8.1.x