public function EntityDrupalWrapper::getBundle in Entity API 7
Returns the bundle of an entity, or FALSE if it has no bundles.
File
- includes/
entity.wrapper.inc, line 717 - Provides wrappers allowing easy usage of the entity metadata.
Class
- EntityDrupalWrapper
- Provides a wrapper for entities registrered in hook_entity_info().
Code
public function getBundle() {
if ($this
->dataAvailable()) {
$this
->spotInfo();
return $this->bundle;
}
}