You are here

public function ContentEntity::setEntityDisplayRepository in Search API 8

Sets the entity display repository.

Parameters

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The new entity display repository.

Return value

$this

File

src/Plugin/search_api/datasource/ContentEntity.php, line 286

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function setEntityDisplayRepository(EntityDisplayRepositoryInterface $entity_display_repository) {
  $this->entityDisplayRepository = $entity_display_repository;
  return $this;
}