function LanguageNegotiationUserAdmin::__construct

Same name and namespace in other branches
  1. 11.x core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php \Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::__construct()
  2. 10 core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php \Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::__construct()
  3. 9 core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php \Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::__construct()
  4. 8.9.x core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php \Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::__construct()

Constructs a new LanguageNegotiationUserAdmin instance.

Parameters

\Drupal\Core\Routing\AdminContext $adminContext: The admin context.

\Symfony\Component\Routing\Matcher\UrlMatcherInterface $router: The router.

\Drupal\Core\PathProcessor\PathProcessorManager $pathProcessorManager: The path processor manager.

\Drupal\Core\Routing\StackedRouteMatchInterface $stackedRouteMatch: The stacked route match.

File

core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php, line 49

Class

LanguageNegotiationUserAdmin
Identifies admin language from the user preferences.

Namespace

Drupal\user\Plugin\LanguageNegotiation

Code

public function __construct(protected AdminContext $adminContext, protected UrlMatcherInterface $router, protected PathProcessorManager $pathProcessorManager, protected StackedRouteMatchInterface $stackedRouteMatch) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.