You are here

protected function VideoItem::getEntityTypeManager in Video 8.2

Gets the entity manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface.

File

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

Class

VideoItem
Plugin implementation of the 'video' field type.

Namespace

Drupal\video\Plugin\Field\FieldType

Code

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