You are here

public function LanguageHierarchyConfigOverride::__construct in Language Hierarchy 8

Same name and namespace in other branches
  1. 2.x src/Config/LanguageHierarchyConfigOverride.php \Drupal\language_hierarchy\Config\LanguageHierarchyConfigOverride::__construct()

Constructs a language override object that may be for a fallback language.

Parameters

string $name: The name of the configuration object being overridden.

string $langcode: The name of the language the override is intended for (i.e. the more specific language, whereas the config override may actually have come from the source storage for a fallback language).

\Drupal\Core\Config\StorageInterface $source_storage: A storage controller object to use for reading the configuration override.

\Drupal\Core\Config\StorageInterface $target_storage: A storage controller object to use for writing the configuration override.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed configuration manager service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

Overrides LanguageConfigOverride::__construct

File

src/Config/LanguageHierarchyConfigOverride.php, line 51

Class

LanguageHierarchyConfigOverride
Defines language configuration overrides.

Namespace

Drupal\language_hierarchy\Config

Code

public function __construct($name, $langcode, StorageInterface $source_storage, StorageInterface $target_storage, TypedConfigManagerInterface $typed_config, EventDispatcherInterface $event_dispatcher) {
  parent::__construct($name, $source_storage, $typed_config, $event_dispatcher);
  $this->target_storage = $target_storage;
  $this->langcode = $langcode;
}