You are here

public function ActionListBuilder::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::__construct()

Constructs a new ActionListBuilder object.

Parameters

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

\Drupal\Core\Entity\EntityStorageInterface $storage: The action storage.

\Drupal\Core\Action\ActionManager $action_manager: The action plugin manager.

Overrides EntityListBuilder::__construct

File

core/modules/action/src/ActionListBuilder.php, line 42

Class

ActionListBuilder
Defines a class to build a listing of action entities.

Namespace

Drupal\action

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ActionManager $action_manager) {
  parent::__construct($entity_type, $storage);
  $this->actionManager = $action_manager;
}