public function EntityInterface::bundle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::bundle()
Gets the bundle of the entity.
Return value
string The bundle of the entity. Defaults to the entity type ID if the entity type does not make use of different bundles.
2 methods override EntityInterface::bundle()
- Entity::bundle in core/
lib/ Drupal/ Core/ Entity/ Entity.php - Gets the bundle of the entity.
- ViewUI::bundle in core/
modules/ views_ui/ src/ ViewUI.php - Gets the bundle of the entity.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityInterface.php, line 93 - Contains \Drupal\Core\Entity\EntityInterface.
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\EntityCode
public function bundle();