You are here

public function SupportTicketListBuilder::__construct in Support Ticketing System 8

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

modules/support_ticket/src/SupportTicketListBuilder.php, line 53
Contains \Drupal\support_ticket\SupportTicketListBuilder.

Class

SupportTicketListBuilder
Defines a class to build a listing of support ticket entities.

Namespace

Drupal\support_ticket

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