public function PermissionsByEntityKernelEventSubscriber::__construct in Permissions by Term 8
Same name and namespace in other branches
- 8.2 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 52
Class
- PermissionsByEntityKernelEventSubscriber
- Class PermissionsByEntityKernelEventSubscriber.
Namespace
Drupal\permissions_by_entity\EventSubscriberCode
public function __construct(AccessCheckerInterface $access_checker, TranslationInterface $translation, CheckedEntityCache $checked_entity_cache) {
$this->accessChecker = $access_checker;
$this->translation = $translation;
$this->checkedEntityCache = $checked_entity_cache;
}