function WorkflowAccessControlHandler::__construct

Same name and namespace in other branches
  1. 8.9.x core/modules/workflows/src/WorkflowAccessControlHandler.php \Drupal\workflows\WorkflowAccessControlHandler::__construct()
  2. 10 core/modules/workflows/src/WorkflowAccessControlHandler.php \Drupal\workflows\WorkflowAccessControlHandler::__construct()
  3. 11.x core/modules/workflows/src/WorkflowAccessControlHandler.php \Drupal\workflows\WorkflowAccessControlHandler::__construct()

Constructs the workflow access control handler instance.

Parameters

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

\Drupal\Component\Plugin\PluginManagerInterface $workflow_type_manager: The workflow type plugin manager.

Overrides EntityAccessControlHandler::__construct

File

core/modules/workflows/src/WorkflowAccessControlHandler.php, line 46

Class

WorkflowAccessControlHandler
Access controller for the Workflow entity.

Namespace

Drupal\workflows

Code

public function __construct(EntityTypeInterface $entity_type, PluginManagerInterface $workflow_type_manager) {
    parent::__construct($entity_type);
    $this->workflowTypeManager = $workflow_type_manager;
}

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