You are here

IndividualDeleteForm.php in CRM Core 8.2

File

modules/crm_core_contact/src/Form/IndividualDeleteForm.php
View source
<?php

namespace Drupal\crm_core_contact\Form;

use Drupal\Core\Entity\ContentEntityDeleteForm;

/**
 * The confirmation form for deleting an individual.
 */
class IndividualDeleteForm extends ContentEntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  protected function getDeletionMessage() {
    $entity = $this
      ->getEntity();
    return $this
      ->t('The individual %name (%id) has been deleted.', array(
      '%id' => $entity
        ->id(),
      '%name' => $entity
        ->label(),
    ));
  }

}

Classes

Namesort descending Description
IndividualDeleteForm The confirmation form for deleting an individual.