You are here

protected function FileLinkItem::getEntityTypeManager in File Link 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldType/FileLinkItem.php \Drupal\file_link\Plugin\Field\FieldType\FileLinkItem::getEntityTypeManager()

Returns the entity type manager service.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager service.

File

src/Plugin/Field/FieldType/FileLinkItem.php, line 289

Class

FileLinkItem
Implements a 'file_link' plugin field type.

Namespace

Drupal\file_link\Plugin\Field\FieldType

Code

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