You are here

public function EntityExtraField::getBaseEntityTypeBundle in Entity Extra Field 8

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

Get base entity type bundle instance.

Return value

\Drupal\Core\Entity\EntityTypeInterface|null The entity type bundle instance.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides EntityExtraFieldInterface::getBaseEntityTypeBundle

1 call to EntityExtraField::getBaseEntityTypeBundle()
EntityExtraField::getBaseEntityBundleUiPath in src/Entity/EntityExtraField.php
Get base entity bundle UI path.

File

src/Entity/EntityExtraField.php, line 215

Class

EntityExtraField
Define entity extra field.

Namespace

Drupal\entity_extra_field\Entity

Code

public function getBaseEntityTypeBundle() {
  $entity_type = $this
    ->getBaseEntityType();
  return $this
    ->entityTypeManager()
    ->getDefinition($entity_type
    ->getBundleEntityType());
}