You are here

public function SynonymListBuilder::__construct in Search API Synonym 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\DateFormatterInterface $date_formatter: The date formatter service.

Overrides EntityListBuilder::__construct

File

src/SynonymListBuilder.php, line 39

Class

SynonymListBuilder
Defines a class to build a listing of Synonym entities.

Namespace

Drupal\search_api_synonym

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter) {
  parent::__construct($entity_type, $storage);
  $this->dateFormatter = $date_formatter;
}