AdminNegotiator::__construct

public AdminNegotiator::__construct(AccountInterface $user, ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, AdminContext $admin_context)

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.

\Drupal\Core\Routing\AdminContext $admin_context: The route admin context to determine whether the route is an admin one.

File

core/modules/user/src/Theme/AdminNegotiator.php, line 57

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;
}
doc_Drupal
2016-10-29 08:43:44
Comments
Leave a Comment

Please login to continue.