You are here

protected function ActivityDeleteForm::getDeletionMessage in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_activity/src/Form/ActivityDeleteForm.php \Drupal\crm_core_activity\Form\ActivityDeleteForm::getDeletionMessage()
  2. 8 modules/crm_core_activity/src/Form/ActivityDeleteForm.php \Drupal\crm_core_activity\Form\ActivityDeleteForm::getDeletionMessage()

Overrides ContentEntityDeleteForm::getDeletionMessage

File

modules/crm_core_activity/src/Form/ActivityDeleteForm.php, line 20
Contains \Drupal\crm_core_activity\Form\ActivityDeleteForm.

Class

ActivityDeleteForm
The confirmation form for deleting an activity.

Namespace

Drupal\crm_core_activity\Form

Code

protected function getDeletionMessage() {
  $entity = $this
    ->getEntity();
  return $this
    ->t('@type %title has been deleted.', array(
    '%id' => $entity
      ->id(),
    '%title' => $entity
      ->label(),
    '@type' => $entity
      ->get('type')->entity
      ->label(),
  ));
}