function 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.
1 method overrides ContentEntityInterface::getBundleEntity()
- ContentEntityBase::getBundleEntity in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Gets the bundle entity of this 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\EntityCode
public function getBundleEntity() : ?EntityInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.