You are here

public function SearchApiFieldTrait::getEntityTypeManager in Search API 8

Retrieves the entity type manager.

Return value

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

1 call to SearchApiFieldTrait::getEntityTypeManager()
SearchApiRenderedItem::init in src/Plugin/views/field/SearchApiRenderedItem.php
Overrides Drupal\views\Plugin\views\HandlerBase::init().

File

src/Plugin/views/field/SearchApiFieldTrait.php, line 163

Class

SearchApiFieldTrait
Provides a trait to use for Search API Views field handlers.

Namespace

Drupal\search_api\Plugin\views\field

Code

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