You are here

protected function BiblioContributor::defaultLabel in Bibliography Module 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

1 call to BiblioContributor::defaultLabel()
BiblioContributor::label in includes/biblio.contributor.controller.inc
Returns the label of the entity.

File

includes/biblio.contributor.controller.inc, line 7

Class

BiblioContributor
Contributor class.

Code

protected function defaultLabel() {
  $wrapper = entity_metadata_wrapper('biblio_contributor', $this);
  return $wrapper->biblio_contributor_name
    ->value();
}