You are here

public function GroupContentMenuListBuilder::__construct in Group Content Menu 8

Constructs a new GroupContentMenuListBuilder 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/GroupContentMenuListBuilder.php, line 45

Class

GroupContentMenuListBuilder
Provides a list controller for the group content menu entity type.

Namespace

Drupal\group_content_menu

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