You are here

private function CiviEntityStorage::getEntityFieldManager in CiviCRM Entity 8.3

Get the entity field manager.

This is a BC layer for Drupal 8.6 entity.manager and Drupal 8.7 entity_field.manager properties.

Return value

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

File

src/CiviEntityStorage.php, line 74

Class

CiviEntityStorage
Defines entity class for external CiviCRM entities.

Namespace

Drupal\civicrm_entity

Code

private function getEntityFieldManager() {
  if (property_exists(static::class, 'entityManager')) {
    return $this->entityManager;
  }
  return $this->entityFieldManager;
}