public function EntityExtraField::getBaseEntityType in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Entity/EntityExtraField.php \Drupal\entity_extra_field\Entity\EntityExtraField::getBaseEntityType()
Get base entity type instance.
Return value
\Drupal\Core\Entity\EntityTypeInterface|null The entity type instance.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides EntityExtraFieldInterface::getBaseEntityType
1 call to EntityExtraField::getBaseEntityType()
- EntityExtraField::getBaseEntityTypeBundle in src/
Entity/ EntityExtraField.php - Get base entity type bundle instance.
File
- src/
Entity/ EntityExtraField.php, line 206
Class
- EntityExtraField
- Define entity extra field.
Namespace
Drupal\entity_extra_field\EntityCode
public function getBaseEntityType() {
return $this
->entityTypeManager()
->getDefinition($this
->getBaseEntityTypeId());
}