You are here

protected function ExtraFieldTypePluginBase::getTargetEntityTypeDefinition in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/ExtraFieldTypePluginBase.php \Drupal\entity_extra_field\ExtraFieldTypePluginBase::getTargetEntityTypeDefinition()

Get target entity type definition.

Return value

\Drupal\Core\Entity\EntityTypeInterface The target entity type definition

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/ExtraFieldTypePluginBase.php, line 249

Class

ExtraFieldTypePluginBase
Define extra field type plugin base.

Namespace

Drupal\entity_extra_field

Code

protected function getTargetEntityTypeDefinition() {
  return $this->entityTypeManager
    ->getDefinition($this
    ->getTargetEntityTypeId());
}