function WorkflowAccessControlHandler::__construct
Same name in other branches
- 9 core/modules/workflows/src/WorkflowAccessControlHandler.php \Drupal\workflows\WorkflowAccessControlHandler::__construct()
- 8.9.x core/modules/workflows/src/WorkflowAccessControlHandler.php \Drupal\workflows\WorkflowAccessControlHandler::__construct()
- 10 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\workflowsCode
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.