You are here

public function StringDatabaseStorageDecorator::__construct in Language Hierarchy 2.x

Constructs a new StringDatabaseStorage class.

Parameters

\Drupal\locale\StringStorageInterface $string_storage: Core string storage service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: Language manager service.

\Drupal\Core\Database\Connection $connection: A Database connection to use for reading and writing configuration data.

array $options: (optional) Any additional database connection options to use in queries.

Overrides StringDatabaseStorage::__construct

File

src/StringDatabaseStorageDecorator.php, line 44

Class

StringDatabaseStorageDecorator
Decorates the locale.storage service.

Namespace

Drupal\language_hierarchy

Code

public function __construct(StringStorageInterface $string_storage, LanguageManagerInterface $language_manager, Connection $connection, array $options = []) {
  $this->stringStorage = $string_storage;
  $this->languageManager = $language_manager;
  parent::__construct($connection, $options);
}