function BlockDeleteForm::getDescription

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

Overrides EntityConfirmFormBase::getDescription

File

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

Class

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

Namespace

Drupal\block\Form

Code

public function getDescription() {
    return $this->t('This will remove the block placement. You will need to <a href=":url">place it again</a> in order to undo this action.', [
        ':url' => Url::fromRoute('block.admin_display_theme', [
            'theme' => $this->getEntity()
                ->getTheme(),
        ])
            ->toString(),
    ]);
}

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