public function BlockDeleteForm::getDescription in Drupal 10
Same name and namespace in other branches
- 9 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getDescription()
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\FormCode
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(),
]);
}