You are here

public function VocabularyDeleteForm::getQuestion in Drupal 10

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

Overrides EntityDeleteFormTrait::getQuestion

File

core/modules/taxonomy/src/Form/VocabularyDeleteForm.php, line 24

Class

VocabularyDeleteForm
Provides a deletion confirmation form for taxonomy vocabulary.

Namespace

Drupal\taxonomy\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete the vocabulary %title?', [
    '%title' => $this->entity
      ->label(),
  ]);
}