You are here

public function AddHierarchy::getEntityTypeManager in Search API 8

Retrieves the entity type manager service.

Return value

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

File

src/Plugin/search_api/processor/AddHierarchy.php, line 70

Class

AddHierarchy
Adds all ancestors' IDs to a hierarchical field.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

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