You are here

public function SearchApiTerm::getEntityRepository in Search API 8

Retrieves the entity repository.

Return value

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

File

src/Plugin/views/argument/SearchApiTerm.php, line 58

Class

SearchApiTerm
Defines a contextual filter searching through all indexed taxonomy fields.

Namespace

Drupal\search_api\Plugin\views\argument

Code

public function getEntityRepository() {
  return $this->entityRepository ?: \Drupal::service('entity.repository');
}