public function ContentEntity::getEntityDisplayRepository in Search API 8
Retrieves the entity display repository.
Return value
\Drupal\Core\Entity\EntityDisplayRepositoryInterface The entity entity display repository.
File
- src/
Plugin/ search_api/ datasource/ ContentEntity.php, line 274
Class
- ContentEntity
- Represents a datasource which exposes the content entities.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
public function getEntityDisplayRepository() {
return $this->entityDisplayRepository ?: \Drupal::service('entity_display.repository');
}