You are here

public function DisplayPluginBase::getEntityTypeManager in Search API 8

Retrieves the entity type manager.

Return value

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

File

src/Display/DisplayPluginBase.php, line 93

Class

DisplayPluginBase
Defines a base class from which other display classes may extend.

Namespace

Drupal\search_api\Display

Code

public function getEntityTypeManager() {
  return $this->entityTypeManager ?: \Drupal::service('entity_type.manager');
}