protected function ExtraFieldTypePluginBase::getTargetEntityTypeDefinition in Entity Extra Field 2.0.x
Same name and namespace in other branches
- 8 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
2 calls to ExtraFieldTypePluginBase::getTargetEntityTypeDefinition()
- ExtraFieldTokenPlugin::buildConfigurationForm in src/
Plugin/ ExtraFieldType/ ExtraFieldTokenPlugin.php - Form constructor.
- ExtraFieldViewsPlugin::buildConfigurationForm in src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php - Form constructor.
File
- src/
ExtraFieldTypePluginBase.php, line 248
Class
- ExtraFieldTypePluginBase
- Define extra field type plugin base.
Namespace
Drupal\entity_extra_fieldCode
protected function getTargetEntityTypeDefinition() : EntityTypeInterface {
return $this->entityTypeManager
->getDefinition($this
->getTargetEntityTypeId());
}