You are here

public function Field::getEntityTypeManager in Search API 8

Retrieves the entity type manager.

Return value

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

File

src/Item/Field.php, line 223

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

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