You are here

protected function NewsletterSubscriber::defaultLabel in Newsletter 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/subscriber/newsletter_subscriber.module, line 699
Module for the Newsletter Subscriber Entity

Class

NewsletterSubscriber
The class used for newsletter subscriber entities.

Code

protected function defaultLabel() {
  return $this->mail;
}