You are here

public function AdministrativeRoleCheck::__construct in Lightning Core 8.5

Same name and namespace in other branches
  1. 8 src/Access/AdministrativeRoleCheck.php \Drupal\lightning_core\Access\AdministrativeRoleCheck::__construct()
  2. 8.2 src/Access/AdministrativeRoleCheck.php \Drupal\lightning_core\Access\AdministrativeRoleCheck::__construct()
  3. 8.3 src/Access/AdministrativeRoleCheck.php \Drupal\lightning_core\Access\AdministrativeRoleCheck::__construct()
  4. 8.4 src/Access/AdministrativeRoleCheck.php \Drupal\lightning_core\Access\AdministrativeRoleCheck::__construct()

AdministratorRoleAccessCheck constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Access/AdministrativeRoleCheck.php, line 30

Class

AdministrativeRoleCheck
Checks if the current user has any roles that are administrative (is_admin).

Namespace

Drupal\lightning_core\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}