You are here

public function IndexListBuilder::__construct in Search API 8

Constructs an IndexListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\Entity\EntityStorageInterface $server_storage: The entity storage class for the 'search_api_server' entity type.

Overrides EntityListBuilder::__construct

File

src/IndexListBuilder.php, line 38

Class

IndexListBuilder
Builds a listing of search index entities.

Namespace

Drupal\search_api

Code

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