You are here

public function LocaleProjectStorage::__construct in Drupal 9

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 39

Class

LocaleProjectStorage
Provides the locale project storage system using a key value store.

Namespace

Drupal\locale

Code

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