You are here

protected function CRMCoreContactEntity::defaultLabel in CRM Core 7

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

modules/crm_core_contact/includes/crm_core_contact.controller.inc, line 8
Controller class for contacts.

Class

CRMCoreContactEntity
CRM Contact Entity Class.

Code

protected function defaultLabel() {
  return crm_core_contact_label($this);
}