You are here

public function BulkFormEntityListBuilder::__construct in Entity API 8

Constructs a new BulkFormEntityListBuilder object.

Parameters

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

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

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

Overrides EntityListBuilder::__construct

File

src/BulkFormEntityListBuilder.php, line 69

Class

BulkFormEntityListBuilder
Provides a list builder that allows using bulk actions.

Namespace

Drupal\entity

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $entity_storage, EntityStorageInterface $action_storage, FormBuilderInterface $form_builder) {
  parent::__construct($entity_type, $entity_storage);
  $this->actionStorage = $action_storage;
  $this->formBuilder = $form_builder;
}