You are here

public function DomainLangHandler::__construct in Domain Lang 8

Constructs a new class object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Component\Plugin\PluginManagerInterface $negotiator_manager: The language negotiation methods plugin manager.

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager.

\Drupal\language\LanguageNegotiatorInterface $language_negotiator: The language negotiation methods manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

\Drupal\Core\Routing\RouteMatchInterface $current_route_match: The currently active route match object.

File

src/DomainLangHandler.php, line 78

Class

DomainLangHandler
Domain language handling.

Namespace

Drupal\domain_lang

Code

public function __construct(ConfigFactoryInterface $config_factory, PluginManagerInterface $negotiator_manager, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $language_negotiator, EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $current_route_match) {
  $this->configFactory = $config_factory;
  $this->negotiatorManager = $negotiator_manager;
  $this->languageManager = $language_manager;
  $this->languageNegotiator = $language_negotiator;
  $this->entityTypeManager = $entity_type_manager;
  $this->currentRouteMatch = $current_route_match;
}