protected function MailChimpCampaign::defaultLabel in Mailchimp 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
- modules/
mailchimp_campaign/ mailchimp_campaign.entity.inc, line 182 - Entity API hooks for mailchimp_campaign module.
Class
- MailChimpCampaign
- Defines MailChimpCampaign entities
Code
protected function defaultLabel() {
return $this->mc_data['title'];
}