function VocabularyDeleteForm::getDeletionMessage

Same name in other branches
  1. 8.9.x core/modules/taxonomy/src/Form/VocabularyDeleteForm.php \Drupal\taxonomy\Form\VocabularyDeleteForm::getDeletionMessage()
  2. 10 core/modules/taxonomy/src/Form/VocabularyDeleteForm.php \Drupal\taxonomy\Form\VocabularyDeleteForm::getDeletionMessage()
  3. 11.x core/modules/taxonomy/src/Form/VocabularyDeleteForm.php \Drupal\taxonomy\Form\VocabularyDeleteForm::getDeletionMessage()

Overrides EntityDeleteFormTrait::getDeletionMessage

File

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

Class

VocabularyDeleteForm
Provides a deletion confirmation form for taxonomy vocabulary.

Namespace

Drupal\taxonomy\Form

Code

protected function getDeletionMessage() {
    return $this->t('Deleted vocabulary %name.', [
        '%name' => $this->entity
            ->label(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.