You are here

protected function VideoItem::getEntityManager in Video 8

Gets the entity manager.

Return value

\Drupal\Core\Entity\EntityManagerInterface.

File

src/Plugin/Field/FieldType/VideoItem.php, line 183

Class

VideoItem
Plugin implementation of the 'video' field type.

Namespace

Drupal\video\Plugin\Field\FieldType

Code

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