1.20.x entity.class.inc | public Entity::bundle() |
Implements EntityInterface::bundle().
Entity types that do not support bundles return the entity type as their bundle. Subclasses should override this method if supporting bundles.
Overrides EntityInterface::bundle
File
- modules/
entity/ entity.class.inc, line 247 - Provides an interface and a base class for entities.
Class
- Entity
- Defines a base entity class.
Code
public function bundle() {
return $this->entityType();
}