public function PageAccess::__construct in Page Manager 8
Same name and namespace in other branches
- 8.4 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 43 - Contains \Drupal\page_manager\Entity\PageAccess.
Class
- PageAccess
- Defines the access control handler for the page entity type.
Namespace
Drupal\page_manager\EntityCode
public function __construct(EntityTypeInterface $entity_type, ContextHandlerInterface $context_handler) {
parent::__construct($entity_type);
$this->contextHandler = $context_handler;
}