You are here

public function AdminNegotiator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::__construct()

Creates a new AdminNegotiator instance.

Parameters

\Drupal\Core\Session\AccountInterface $user: The current user.

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

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

File

core/modules/user/src/Theme/AdminNegotiator.php, line 60
Contains \Drupal\user\Theme\AdminNegotiator.

Class

AdminNegotiator
Sets the active theme on admin pages.

Namespace

Drupal\user\Theme

Code

public function __construct(AccountInterface $user, ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, AdminContext $admin_context) {
  $this->user = $user;
  $this->configFactory = $config_factory;
  $this->entityManager = $entity_manager;
  $this->adminContext = $admin_context;
}