You are here

public function DeleteForm::getDescription in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Form/DeleteForm.php \Drupal\comment\Form\DeleteForm::getDescription()
  2. 9 core/modules/comment/src/Form/DeleteForm.php \Drupal\comment\Form\DeleteForm::getDescription()

Returns additional text to display as a description.

Return value

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

Overrides ContentEntityConfirmFormBase::getDescription

File

core/modules/comment/src/Form/DeleteForm.php, line 32

Class

DeleteForm
Provides the comment delete confirmation form.

Namespace

Drupal\comment\Form

Code

public function getDescription() {
  return $this
    ->t('Any replies to this comment will be lost. This action cannot be undone.');
}