public function SearchApiEntity::getEntityDisplayRepository in Search API 8
Retrieves the entity display repository.
Return value
\Drupal\Core\Entity\EntityDisplayRepositoryInterface The entity entity display repository.
File
- src/
Plugin/ views/ field/ SearchApiEntity.php, line 58
Class
- SearchApiEntity
- Handles the display of entity reference fields in Search API Views.
Namespace
Drupal\search_api\Plugin\views\fieldCode
public function getEntityDisplayRepository() {
return $this->entityDisplayRepository ?: \Drupal::service('entity_display.repository');
}