You are here

public function SearchApiAllTerms::getEntityTypeManager in Search API 8

Retrieves the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

File

src/Plugin/views/argument/SearchApiAllTerms.php, line 48

Class

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

Namespace

Drupal\search_api\Plugin\views\argument

Code

public function getEntityTypeManager() : EntityTypeManagerInterface {
  return $this->entityTypeManager ?: \Drupal::entityTypeManager();
}