function AdminNegotiator::__construct

Same name and namespace in other branches
  1. 11.x core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
  2. 10 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
  3. 9 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()
  4. 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\Theme

Code

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.