You are here

public function ContentEntityDeriver::getEntityTypeManager in Search API 8

Retrieves the entity type manager.

Return value

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

File

src/Plugin/search_api/datasource/ContentEntityDeriver.php, line 56

Class

ContentEntityDeriver
Derives a datasource plugin definition for every content entity type.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

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