You are here

public function SingleLanguageNegotiationUrl::__construct in Single Language URL Prefix 8

Same name and namespace in other branches
  1. 2.0.x src/SingleLanguageNegotiationUrl.php \Drupal\single_language_url_prefix\SingleLanguageNegotiationUrl::__construct()

Constructs a SingleLanguageNegotiationUrl object.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: An alias manager for looking up the system path.

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

\Drupal\Core\Path\PathMatcherInterface $path_matcher: Path Matcher service.

File

src/SingleLanguageNegotiationUrl.php, line 60

Class

SingleLanguageNegotiationUrl
Class for identifying language via URL prefix when there is single language.

Namespace

Drupal\single_language_url_prefix

Code

public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config, PathMatcherInterface $path_matcher) {
  $this->languageManager = $language_manager;
  $this->config = $config;
  $this->pathMatcher = $path_matcher;
}