You are here

function LocaleProjectStorage::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\locale

Code

function __construct(KeyValueFactoryInterface $key_value_factory) {
  $this->keyValueStore = $key_value_factory
    ->get('locale.project');
}