You are here

public function TermDeleteForm::getDescription in Drupal 10

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

Returns additional text to display as a description.

Return value

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

Overrides ContentEntityConfirmFormBase::getDescription

File

core/modules/taxonomy/src/Form/TermDeleteForm.php, line 34

Class

TermDeleteForm
Provides a deletion confirmation form for taxonomy term.

Namespace

Drupal\taxonomy\Form

Code

public function getDescription() {
  return $this
    ->t('Deleting a term will delete all its children if there are any. This action cannot be undone.');
}