protected function EntityClass::defaultLabel in Entity API 7
Specifies the default label, which is picked up by label() by default.
Overrides Entity::defaultLabel
File
- tests/
entity_test.module, line 151 - Test module for the entity API.
Class
- EntityClass
- Main class for test entities.
Code
protected function defaultLabel() {
$type = entity_test_get_types($this->name);
return $type->label;
}