You are here

public function Activity::label in CRM Core 8

Same name and namespace in other branches
  1. 8.3 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 EntityInterface::label

File

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

Class

Activity
CRM Activity Entity Class.

Namespace

Drupal\crm_core_activity\Entity

Code

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