public function LanguageNegotiationUserAdmin::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php \Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::__construct()
- 9 core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php \Drupal\user\Plugin\LanguageNegotiation\LanguageNegotiationUserAdmin::__construct()
Constructs a new LanguageNegotiationUserAdmin instance.
Parameters
\Drupal\Core\Routing\AdminContext $admin_context: The admin context.
\Symfony\Component\Routing\Matcher\UrlMatcherInterface $router: The router.
\Drupal\Core\PathProcessor\PathProcessorManager $path_processor_manager: The path processor manager.
\Drupal\Core\Routing\StackedRouteMatchInterface $stacked_route_match: The stacked route match.
File
- core/
modules/ user/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationUserAdmin.php, line 78
Class
- LanguageNegotiationUserAdmin
- Identifies admin language from the user preferences.
Namespace
Drupal\user\Plugin\LanguageNegotiationCode
public function __construct(AdminContext $admin_context, UrlMatcherInterface $router, PathProcessorManager $path_processor_manager, StackedRouteMatchInterface $stacked_route_match) {
$this->adminContext = $admin_context;
$this->router = $router;
$this->pathProcessorManager = $path_processor_manager;
$this->stackedRouteMatch = $stacked_route_match;
}