You are here

public function Activity::label in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_activity/src/Entity/Activity.php \Drupal\crm_core_activity\Entity\Activity::label()
  2. 8.2 modules/crm_core_activity/src/Entity/Activity.php \Drupal\crm_core_activity\Entity\Activity::label()

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides ContentEntityBase::label

File

modules/crm_core_activity/src/Entity/Activity.php, line 196

Class

Activity
CRM Activity Entity Class.

Namespace

Drupal\crm_core_activity\Entity

Code

public function label() {
  return $this->type->entity
    ->getPlugin()
    ->label($this);
}