function ContentEntityInterface::getBundleEntity

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/ContentEntityInterface.php \Drupal\Core\Entity\ContentEntityInterface::getBundleEntity()

Gets the bundle entity of this entity.

Return value

\Drupal\Core\Entity\EntityInterface|null The entity which is the bundle of this entity, or NULL if this entity's entity type does not represent bundles with an entity.

File

core/lib/Drupal/Core/Entity/ContentEntityInterface.php, line 33

Class

ContentEntityInterface
Defines a common interface for all content entity objects.

Namespace

Drupal\Core\Entity

Code

public function getBundleEntity() : ?EntityInterface;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.