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