You are here

public function ElasticsearchViewsEntity::setEntityDisplayRepository in Elasticsearch Connector 8.2

Same name and namespace in other branches
  1. 8.7 modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntity.php \Drupal\elasticsearch_connector_views\Plugin\views\field\ElasticsearchViewsEntity::setEntityDisplayRepository()
  2. 8.5 modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntity.php \Drupal\elasticsearch_connector_views\Plugin\views\field\ElasticsearchViewsEntity::setEntityDisplayRepository()
  3. 8.6 modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntity.php \Drupal\elasticsearch_connector_views\Plugin\views\field\ElasticsearchViewsEntity::setEntityDisplayRepository()

Sets the entity display repository.

Parameters

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

Return value

$this

File

modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntity.php, line 60

Class

ElasticsearchViewsEntity
Handles the display of entity reference fields in Search API Views.

Namespace

Drupal\elasticsearch_connector_views\Plugin\views\field

Code

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