public function EntityDrupalWrapper::label in Entity API 7
Returns the entity label.
Overrides EntityMetadataWrapper::label
See also
File
- includes/
entity.wrapper.inc, line 942 - Provides wrappers allowing easy usage of the entity metadata.
Class
- EntityDrupalWrapper
- Provides a wrapper for entities registrered in hook_entity_info().
Code
public function label() {
if ($entity = $this
->value()) {
return entity_label($this->type, $entity);
}
}