You are here

protected function ImageItem::getEntityManager in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\FieldType

Code

protected function getEntityManager() {
  if (!isset($this->entityManager)) {
    $this->entityManager = \Drupal::entityManager();
  }
  return $this->entityManager;
}