outline-8.x-1.x-dev/src/Form/OutlineDeleteForm.php
src/Form/OutlineDeleteForm.php
<?php
namespace Drupal\outline\Form;
use Drupal\Core\Entity\EntityDeleteForm;
/**
* Provides a deletion confirmation form for outline.
*/
class OutlineDeleteForm extends EntityDeleteForm {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'outline_confirm_delete';
}
/**
* {@inheritdoc}
*/
public function getQuestion() {
return $this->t('Are you sure you want to delete the outline %title?', array('%title' => $this->entity->label()));
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this->t('Deleting an outline will delete all the entries in it. This action cannot be undone.');
}
/**
* {@inheritdoc}
*/
protected function getDeletionMessage() {
return $this->t('Deleted outline %name.', array('%name' => $this->entity->label()));
}
}
