function AdminNegotiator::__construct
Same name and namespace in other branches
- 11.x core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
- 10 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
- 9 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
- 8.9.x core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
File
-
core/
modules/ user/ src/ Theme/ AdminNegotiator.php, line 24
Class
- AdminNegotiator
- Sets the active theme on admin pages.
Namespace
Drupal\user\ThemeCode
public function __construct(protected AccountInterface $user, protected ConfigFactoryInterface $configFactory, #[Autowire(service: 'router.admin_context')] protected AdminContext $adminContext) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.