You are here

public function Task::getEntityTypeManager in Search API 8

Retrieves the entity type manager.

Return value

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

Overrides TaskInterface::getEntityTypeManager

File

src/Entity/Task.php, line 68

Class

Task
Defines the Search API task entity class.

Namespace

Drupal\search_api\Entity

Code

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