You are here

public function UserProtectPermissions::__construct in User protect 8

Constructs a new UserProtectPermissions instance.

Parameters

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

File

src/UserProtectPermissions.php, line 30

Class

UserProtectPermissions
Provides dynamic permissions for bypassing user protect rules.

Namespace

Drupal\userprotect

Code

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