You are here

protected function FileLinkItem::getEntityTypeManager in File Link 2.0.x

Same name and namespace in other branches
  1. 8 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 360

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;
}