protected function EntityLoadHelper::getEntityFieldManager in YAML Content 8
Get the entity field manager service.
Return value
\Drupal\Core\Entity\EntityFieldManagerInterface The entity field manager service.
File
- src/
Service/ EntityLoadHelper.php, line 320
Class
- EntityLoadHelper
- A helper class to support identification and loading of existing entities.
Namespace
Drupal\yaml_content\ServiceCode
protected function getEntityFieldManager() {
// Lazy load the entity field manager service.
if (!isset($this->entityFieldManager)) {
$this->entityFieldManager = $this->container
->get('entity_field.manager');
}
return $this->entityFieldManager;
}