You are here

public function ConfirmFormBase::getDescription in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/ConfirmFormBase.php \Drupal\Core\Form\ConfirmFormBase::getDescription()

Returns additional text to display as a description.

Return value

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

Overrides ConfirmFormInterface::getDescription

1 call to ConfirmFormBase::getDescription()
ConfirmFormBase::buildForm in core/lib/Drupal/Core/Form/ConfirmFormBase.php
Form constructor.
14 methods override ConfirmFormBase::getDescription()
BookRemoveForm::getDescription in core/modules/book/src/Form/BookRemoveForm.php
Returns additional text to display as a description.
ConfirmFormTestForm::getDescription in core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
Returns additional text to display as a description.
LayoutBuilderDisableForm::getDescription in core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php
Returns additional text to display as a description.
MenuLinkResetForm::getDescription in core/modules/menu_ui/src/Form/MenuLinkResetForm.php
Returns additional text to display as a description.
ModulesListConfirmForm::getDescription in core/modules/system/src/Form/ModulesListConfirmForm.php
Returns additional text to display as a description.

... See full list

File

core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 13

Class

ConfirmFormBase
Provides a generic base class for a confirmation form.

Namespace

Drupal\Core\Form

Code

public function getDescription() {
  return $this
    ->t('This action cannot be undone.');
}