You are here

public function ImageStyleListBuilder::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::__construct()

Constructs a new ImageStyleListBuilder object.

Parameters

EntityTypeInterface $entity_type: The entity type definition.

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

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.

Overrides EntityListBuilder::__construct

File

core/modules/image/src/ImageStyleListBuilder.php, line 41
Contains \Drupal\image\ImageStyleListBuilder.

Class

ImageStyleListBuilder
Defines a class to build a listing of image style entities.

Namespace

Drupal\image

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $image_style_storage, UrlGeneratorInterface $url_generator) {
  parent::__construct($entity_type, $image_style_storage);
  $this->urlGenerator = $url_generator;
}