You are here

protected function EntityTranslationRenderTrait::getEntityRepository in Drupal 8

Returns the entity repository.

Return value

\Drupal\Core\Entity\EntityRepositoryInterface The entity repository.

7 methods override EntityTranslationRenderTrait::getEntityRepository()
BulkForm::getEntityRepository in core/modules/views/src/Plugin/views/field/BulkForm.php
Returns the entity repository.
DataEntityRow::getEntityRepository in core/modules/rest/src/Plugin/views/row/DataEntityRow.php
Returns the entity repository.
EntityFieldRenderer::getEntityRepository in core/modules/views/src/Entity/Render/EntityFieldRenderer.php
Returns the entity repository.
EntityOperations::getEntityRepository in core/modules/views/src/Plugin/views/field/EntityOperations.php
Returns the entity repository.
EntityRow::getEntityRepository in core/modules/views/src/Plugin/views/row/EntityRow.php
Returns the entity repository.

... See full list

File

core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php, line 107

Class

EntityTranslationRenderTrait
Trait used to instantiate the view's entity translation renderer.

Namespace

Drupal\views\Entity\Render

Code

protected function getEntityRepository() {
  @trigger_error('Classes that use EntityTranslationRenderTrait must provide a getEntityRepository() method since drupal:8.7.0. This implementation will become abstract before drupal:9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
  return \Drupal::service('entity.repository');
}