1 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
- core/
modules/ entity/ entity.class.inc, line 277 - Provides an interface and a base class for entities.
Class
- Entity
- Defines a base entity class.
Code
public function bundle() {
return $this->entityType();
}