You are here

public function NodeListBuilder::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/NodeListBuilder.php \Drupal\node\NodeListBuilder::__construct()
  2. 10 core/modules/node/src/NodeListBuilder.php \Drupal\node\NodeListBuilder::__construct()

Constructs a new NodeListBuilder 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

1 call to NodeListBuilder::__construct()
ModeratedNodeListBuilder::__construct in core/modules/content_moderation/src/ModeratedNodeListBuilder.php
Constructs a new ModeratedNodeListBuilder object.
1 method overrides NodeListBuilder::__construct()
ModeratedNodeListBuilder::__construct in core/modules/content_moderation/src/ModeratedNodeListBuilder.php
Constructs a new ModeratedNodeListBuilder object.

File

core/modules/node/src/NodeListBuilder.php, line 40

Class

NodeListBuilder
Defines a class to build a listing of node entities.

Namespace

Drupal\node

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;
}