You are here

protected function Bean::defaultLabel in Bean (for Drupal 7) 7

Get the default label

Return value

string

Overrides Entity::defaultLabel

File

includes/bean.core.inc, line 256
Bean classes and plugin interface

Class

Bean
The Bean entity class

Code

protected function defaultLabel() {
  if (empty($this->title)) {
    return $this->label;
  }
  return $this->title;
}