function BlockContentAccessControlHandler::__construct

Same name in other branches
  1. 9 core/modules/block_content/src/BlockContentAccessControlHandler.php \Drupal\block_content\BlockContentAccessControlHandler::__construct()
  2. 10 core/modules/block_content/src/BlockContentAccessControlHandler.php \Drupal\block_content\BlockContentAccessControlHandler::__construct()
  3. 11.x core/modules/block_content/src/BlockContentAccessControlHandler.php \Drupal\block_content\BlockContentAccessControlHandler::__construct()

BlockContentAccessControlHandler constructor.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

Overrides EntityAccessControlHandler::__construct

File

core/modules/block_content/src/BlockContentAccessControlHandler.php, line 38

Class

BlockContentAccessControlHandler
Defines the access control handler for the custom block entity type.

Namespace

Drupal\block_content

Code

public function __construct(EntityTypeInterface $entity_type, EventDispatcherInterface $dispatcher) {
    parent::__construct($entity_type);
    $this->eventDispatcher = $dispatcher;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.