protected function ImageItem::getEntityManager in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/image/src/Plugin/Field/FieldType/ImageItem.php \Drupal\image\Plugin\Field\FieldType\ImageItem::getEntityManager()
Gets the entity manager.
Return value
\Drupal\Core\Entity\EntityManagerInterface.
File
- core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php, line 496 - Contains \Drupal\image\Plugin\Field\FieldType\ImageItem.
Class
- ImageItem
- Plugin implementation of the 'image' field type.
Namespace
Drupal\image\Plugin\Field\FieldTypeCode
protected function getEntityManager() {
if (!isset($this->entityManager)) {
$this->entityManager = \Drupal::entityManager();
}
return $this->entityManager;
}