Returns the entity field manager.
\Drupal\Core\Entity\EntityFieldManagerInterface The entity field manager.
protected function getEntityFieldManager() { if (!isset($this->entityFieldManager)) { $this->entityFieldManager = \Drupal::service('entity_field.manager'); } return $this->entityFieldManager; }