protected function FieldAPIHandlerTrait::getEntityFieldManager in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/FieldAPIHandlerTrait.php \Drupal\views\FieldAPIHandlerTrait::getEntityFieldManager()
Returns the entity field manager.
Return value
\Drupal\Core\Entity\EntityManagerInterface The entity field manager.
File
- core/
modules/ views/ src/ FieldAPIHandlerTrait.php, line 93
Class
- FieldAPIHandlerTrait
- A trait containing helper methods for field definitions.
Namespace
Drupal\viewsCode
protected function getEntityFieldManager() {
if (!isset($this->entityFieldManager)) {
$this->entityFieldManager = \Drupal::service('entity_field.manager');
}
return $this->entityFieldManager;
}