You are here

public function MessageListBuilder::__construct in Message 8

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\DateFormatter $date_service: The date service.

Overrides EntityListBuilder::__construct

File

src/MessageListBuilder.php, line 36

Class

MessageListBuilder
Defines a class to build a listing of Message entities.

Namespace

Drupal\message

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatter $date_service) {
  parent::__construct($entity_type, $storage);
  $this->dateService = $date_service;
}