You are here

public function LanguageSwitcherLinkProcessor::__construct in Language Switcher Extended 8

LanguageSwitcherLinkProcessor constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory service.

\Drupal\Core\Routing\CurrentRouteMatch $currentRouteMatch: Route match service.

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

File

src/LanguageSwitcherLinkProcessor.php, line 48

Class

LanguageSwitcherLinkProcessor
Processes the Language Switcher links.

Namespace

Drupal\language_switcher_extended

Code

public function __construct(ConfigFactoryInterface $configFactory, CurrentRouteMatch $currentRouteMatch, LanguageManagerInterface $language_manager) {
  $this->configFactory = $configFactory;
  $this->currentRouteMatch = $currentRouteMatch;
  $this->languageManager = $language_manager;
}