function LinkBase::getEntityRepository

Returns the entity repository.

Return value

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

Overrides EntityTranslationRenderTrait::getEntityRepository

File

core/modules/views/src/Plugin/views/field/LinkBase.php, line 267

Class

LinkBase
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

protected function getEntityRepository() {
  return $this->entityRepository;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.