You are here

ConnectionDeleteForm.php in RedHen CRM 8

File

modules/redhen_connection/src/Form/ConnectionDeleteForm.php
View source
<?php

namespace Drupal\redhen_connection\Form;

use Drupal\Core\Entity\ContentEntityDeleteForm;
use Drupal\redhen_connection\Entity\ConnectionType;

/**
 * Provides a form for deleting Connection entities.
 *
 * @ingroup redhen_connection
 */
class ConnectionDeleteForm extends ContentEntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  public function getQuestion() {
    return $this
      ->t('Are you sure you want to delete the @connection-type %name?', [
      '@connection-type' => ConnectionType::load($this->entity
        ->bundle())
        ->label(),
      '%name' => $this->entity
        ->label(),
    ]);
  }

}

Classes

Namesort descending Description
ConnectionDeleteForm Provides a form for deleting Connection entities.