You are here

public function SearchApiTerm::getTermStorage in Search API 8

Retrieves the term storage.

Return value

\Drupal\taxonomy\TermStorageInterface The term storage.

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\argument

Code

public function getTermStorage() {
  return $this->termStorage ?: \Drupal::service('entity_type.manager')
    ->getStorage('taxonomy_term');
}