You are here

public function Box::defaultLabel in Boxes 7.2

Defines the entity label if the 'entity_class_label' callback is used.

Specify 'entity_class_label' as 'label callback' in hook_entity_info() to let the entity label point to this method. Override this in order to implement a custom default label.

Overrides Entity::defaultLabel

File

includes/boxes.core.inc, line 163
Box classes and plugin interface

Class

Box
The Box entity class

Code

public function defaultLabel() {
  return $this->label;
}