function BlockDeleteForm::getCancelUrl

Same name in other branches
  1. 8.9.x core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getCancelUrl()
  2. 10 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getCancelUrl()
  3. 11.x core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getCancelUrl()

Overrides EntityDeleteFormTrait::getCancelUrl

File

core/modules/block/src/Form/BlockDeleteForm.php, line 18

Class

BlockDeleteForm
Provides a deletion confirmation form for the block instance deletion form.

Namespace

Drupal\block\Form

Code

public function getCancelUrl() {
    return new Url('block.admin_display');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.