You are here

public function ImageAPIOptimizePipelineListBuilder::__construct in Image Optimize (or ImageAPI Optimize) 8.2

Same name and namespace in other branches
  1. 8.3 src/ImageAPIOptimizePipelineListBuilder.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineListBuilder::__construct()
  2. 4.x src/ImageAPIOptimizePipelineListBuilder.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineListBuilder::__construct()

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type:

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $storage:

\Drupal\Core\Form\FormBuilderInterface $form_builder:

Overrides EntityListBuilder::__construct

File

src/ImageAPIOptimizePipelineListBuilder.php, line 45

Class

ImageAPIOptimizePipelineListBuilder
Defines a class to build a listing of image optimize pipeline entities.

Namespace

Drupal\imageapi_optimize

Code

public function __construct(EntityTypeInterface $entity_type, ConfigEntityStorageInterface $storage, FormBuilderInterface $form_builder) {
  $this->entityTypeId = $entity_type
    ->id();
  $this->storage = $storage;
  $this->entityType = $entity_type;
  $this->formBuilder = $form_builder;
}