function LocaleProjectStorage::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::__construct()
Constructs a State object.
Parameters
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use.
File
- core/
modules/ locale/ src/ LocaleProjectStorage.php, line 44 - Contains \Drupal\locale\LocaleProjectStorage.
Class
- LocaleProjectStorage
- Provides the locale project storage system using a key value store.
Namespace
Drupal\localeCode
function __construct(KeyValueFactoryInterface $key_value_factory) {
$this->keyValueStore = $key_value_factory
->get('locale.project');
}