You are here

public function ContentEntity::getEntityFieldManager in Search API 8

Retrieves the entity field manager.

Return value

\Drupal\Core\Entity\EntityFieldManagerInterface The entity field manager.

File

src/Plugin/search_api/datasource/ContentEntity.php, line 251

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function getEntityFieldManager() {
  return $this->entityFieldManager ?: \Drupal::service('entity_field.manager');
}