You are here

public function PageVariantAccess::__construct in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/Entity/PageVariantAccess.php \Drupal\page_manager\Entity\PageVariantAccess::__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/PageVariantAccess.php, line 43
Contains \Drupal\page_manager\Entity\PageVariantAccess.

Class

PageVariantAccess
Defines the access control handler for the page variant 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;
}