protected function ExtraFieldTypePluginBase::getTargetEntityTypeDefinition in Entity Extra Field 8
Same name and namespace in other branches
- 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_fieldCode
protected function getTargetEntityTypeDefinition() {
return $this->entityTypeManager
->getDefinition($this
->getTargetEntityTypeId());
}