You are here

public function UserRestrictionsManager::__construct in User restrictions 8

Constructs a UserRestrictionsManager object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity storage.

\Drupal\user_restrictions\UserRestrictionTypeManagerInterface $type_manager: The user restriction type manager.

Psr\Log\LoggerInterface $logger: The user_restrictions logger channel.

File

src/UserRestrictionsManager.php, line 55

Class

UserRestrictionsManager
Defines the user restriction manager.

Namespace

Drupal\user_restrictions

Code

public function __construct(EntityTypeManagerInterface $entity_manager, UserRestrictionTypeManagerInterface $type_manager, LoggerInterface $logger) {
  $this->entityStorage = $entity_manager
    ->getStorage('user_restrictions');
  $this->typeManager = $type_manager;
  $this->logger = $logger;
}