You are here

public function WizardAccess::__construct in Flexiform 8

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

contrib/wizard/src/Entity/WizardAccess.php, line 37

Class

WizardAccess
Access class for the flexiform_wizard entity type.

Namespace

Drupal\flexiform_wizard\Entity

Code

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