You are here

ActivityDeleteForm.php in CRM Core 8.2

File

modules/crm_core_activity/src/Form/ActivityDeleteForm.php
View source
<?php

/**
 * @file
 * Contains \Drupal\crm_core_activity\Form\ActivityDeleteForm.
 */
namespace Drupal\crm_core_activity\Form;

use Drupal\Core\Entity\ContentEntityDeleteForm;

/**
 * The confirmation form for deleting an activity.
 */
class ActivityDeleteForm extends ContentEntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  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(),
    ));
  }

}

Classes

Namesort descending Description
ActivityDeleteForm The confirmation form for deleting an activity.