You are here

public function ModeratedNodeListBuilder::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/ModeratedNodeListBuilder.php \Drupal\content_moderation\ModeratedNodeListBuilder::__construct()

Constructs a new ModeratedNodeListBuilder 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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides NodeListBuilder::__construct

File

core/modules/content_moderation/src/ModeratedNodeListBuilder.php, line 47

Class

ModeratedNodeListBuilder
Defines a class to build a listing of moderated node entities.

Namespace

Drupal\content_moderation

Code

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