Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getBundleEntityType()
  2. 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::getBundleEntityType()

Gets the name of the entity type which provides bundles.

Return value

string|null The name of the entity type which provides bundles, or NULL if the entity type does not have a bundle entity type.

Overrides EntityTypeInterface::getBundleEntityType

2 calls to EntityType::getBundleEntityType()
EntityType::getBundleConfigDependency in core/lib/Drupal/Core/Entity/EntityType.php
Gets the config dependency info for this entity, if any exists.
EntityType::getBundleLabel in core/lib/Drupal/Core/Entity/EntityType.php
Gets the label for the bundle.

File

core/lib/Drupal/Core/Entity/EntityType.php, line 670

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getBundleEntityType() {
  return $this->bundle_entity_type;
}