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