You are here

public function WorkflowAccessControlHandler::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}