You are here

public function PageAccess::__construct in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Entity/PageAccess.php \Drupal\page_manager\Entity\PageAccess::__construct()

Constructs an access control handler instance.

Parameters

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

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler.

Overrides EntityAccessControlHandler::__construct

File

src/Entity/PageAccess.php, line 38

Class

PageAccess
Defines the access control handler for the page entity type.

Namespace

Drupal\page_manager\Entity

Code

public function __construct(EntityTypeInterface $entity_type, ContextHandlerInterface $context_handler) {
  parent::__construct($entity_type);
  $this->contextHandler = $context_handler;
}