3 namespace Drupal\taxonomy\Form;
5 use Drupal\Core\Entity\EntityDeleteForm;
8 * Provides a deletion confirmation form for taxonomy vocabulary.
12 class VocabularyDeleteForm extends EntityDeleteForm {
17 public function getFormId() {
18 return 'taxonomy_vocabulary_confirm_delete';
24 public function getQuestion() {
25 return $this->t('Are you sure you want to delete the vocabulary %title?', ['%title' => $this->entity->label()]);
31 public function getDescription() {
32 return $this->t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.');
38 protected function getDeletionMessage() {
39 return $this->t('Deleted vocabulary %name.', ['%name' => $this->entity->label()]);