You are here

public function PhotosImageListBuilder::__construct in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x src/PhotosImageListBuilder.php \Drupal\photos\PhotosImageListBuilder::__construct()

Constructs a new PhotosImageListBuilder object.

Parameters

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

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

Overrides EntityListBuilder::__construct

File

src/PhotosImageListBuilder.php, line 39

Class

PhotosImageListBuilder
Defines a class to build a listing of photos_image entities.

Namespace

Drupal\photos

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter, RedirectDestinationInterface $redirect_destination) {
  parent::__construct($entity_type, $storage);
  $this->dateFormatter = $date_formatter;
  $this->redirectDestination = $redirect_destination;
}