public function ActivityTypePluginBase::label in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_activity/src/ActivityTypePluginBase.php \Drupal\crm_core_activity\ActivityTypePluginBase::label()
- 8.2 modules/crm_core_activity/src/ActivityTypePluginBase.php \Drupal\crm_core_activity\ActivityTypePluginBase::label()
Displays the contents of the label field on the activity entity.
Parameters
\Drupal\crm_core_activity\ActivityInterface $entity: The activity entity to build the label for.
Return value
string Returns the entity label.
Overrides ActivityTypePluginInterface::label
File
- modules/
crm_core_activity/ src/ ActivityTypePluginBase.php, line 31
Class
- ActivityTypePluginBase
- Base implementation of activity type plugin.
Namespace
Drupal\crm_core_activityCode
public function label(ActivityInterface $entity) {
return $entity
->get('title')->value;
}