3 namespace Drupal\block\Form;
5 use Drupal\Core\Entity\EntityDeleteForm;
9 * Provides a deletion confirmation form for the block instance deletion form.
11 class BlockDeleteForm extends EntityDeleteForm {
16 public function getCancelUrl() {
17 return new Url('block.admin_display');
23 public function getConfirmText() {
24 return $this->t('Remove');
30 public function getQuestion() {
31 return $this->t('Are you sure you want to remove the @entity-type %label?', [
32 '@entity-type' => $this->getEntity()->getEntityType()->getLowercaseLabel(),
33 '%label' => $this->getEntity()->label(),
40 protected function getDeletionMessage() {
41 $entity = $this->getEntity();
42 return $this->t('The @entity-type %label has been removed.', [
43 '@entity-type' => $entity->getEntityType()->getLowercaseLabel(),
44 '%label' => $entity->label(),