public function EntityBase::bundle in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
1 method overrides EntityBase::bundle()
- ContentEntityBase::bundle in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Gets the bundle of the entity.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 143
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function bundle() {
return $this->entityTypeId;
}