You are here

public function BlockDeleteForm::getDescription in Drupal 9

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

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(),
  ]);
}