You are here

public function WorkflowListBuilder::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/WorkflowListBuilder.php \Drupal\workflows\WorkflowListBuilder::__construct()
  2. 10 core/modules/workflows/src/WorkflowListBuilder.php \Drupal\workflows\WorkflowListBuilder::__construct()

Constructs a new WorkflowListBuilder object.

Parameters

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

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

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

Overrides EntityListBuilder::__construct

File

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

Class

WorkflowListBuilder
Provides a listing of Workflow entities.

Namespace

Drupal\workflows

Code

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