You are here

public function PermissionsByEntityKernelEventSubscriber::__construct in Permissions by Term 8.2

Same name and namespace in other branches
  1. 8 modules/permissions_by_entity/src/EventSubscriber/PermissionsByEntityKernelEventSubscriber.php \Drupal\permissions_by_entity\EventSubscriber\PermissionsByEntityKernelEventSubscriber::__construct()

PermissionsByEntityKernelEventSubscriber constructor.

Parameters

\Drupal\permissions_by_entity\Service\AccessCheckerInterface $access_checker: The service to check if the current user is allowed to access an entity.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The core string translator.

\Drupal\permissions_by_entity\Service\CheckedEntityCache $checked_entity_cache: The cache for checked entities.

File

modules/permissions_by_entity/src/EventSubscriber/PermissionsByEntityKernelEventSubscriber.php, line 53

Class

PermissionsByEntityKernelEventSubscriber
Class PermissionsByEntityKernelEventSubscriber.

Namespace

Drupal\permissions_by_entity\EventSubscriber

Code

public function __construct(AccessCheckerInterface $access_checker, TranslationInterface $translation, CheckedEntityCache $checked_entity_cache) {
  $this->accessChecker = $access_checker;
  $this->translation = $translation;
  $this->checkedEntityCache = $checked_entity_cache;
}