You are here

public function SearchApiTerm::setEntityRepository in Search API 8

Sets the entity repository.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

Return value

$this

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\argument

Code

public function setEntityRepository(EntityRepositoryInterface $entity_repository) {
  $this->entityRepository = $entity_repository;
  return $this;
}