public function AccessChecker::__construct in Permissions by Term 8
Same name and namespace in other branches
- 8.2 modules/permissions_by_entity/src/Service/AccessChecker.php \Drupal\permissions_by_entity\Service\AccessChecker::__construct()
AccessChecker constructor.
We override the constructor, because we do not need the entity manager.
Parameters
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\permissions_by_entity\Service\CheckedEntityCache $checked_entity_cache: The cache for checked entities.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The core entity type manager.
\Drupal\Core\Database\Connection $database: The database connection.
Overrides AccessCheck::__construct
File
- modules/
permissions_by_entity/ src/ Service/ AccessChecker.php, line 55
Class
- AccessChecker
- Class AccessChecker.
Namespace
Drupal\permissions_by_entity\ServiceCode
public function __construct(EventDispatcherInterface $event_dispatcher, CheckedEntityCache $checked_entity_cache, EntityManagerInterface $entity_manager, Connection $database) {
parent::__construct($database, $event_dispatcher);
$this->eventDispatcher = $event_dispatcher;
$this->checkedEntityCache = $checked_entity_cache;
$this->event = new EntityFieldValueAccessDeniedEvent();
}