function EntityBase::bundle
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::bundle()
Overrides EntityInterface::bundle
5 calls to EntityBase::bundle()
- EntityBase::access in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Checks data value access.
- EntityBase::getConfigDependencyName in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Gets the configuration dependency name.
- EntityBase::getListCacheTagsToInvalidate in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - The list cache tags to invalidate for this entity.
- EntityBase::toUrl in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Gets the URL object for the entity.
- EntityBase::urlRouteParameters in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Gets an array of placeholders for this entity.
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.