Backup of db before drupal security update
[yaffs-website] / web / core / modules / taxonomy / src / Form / VocabularyDeleteForm.php
1 <?php
2
3 namespace Drupal\taxonomy\Form;
4
5 use Drupal\Core\Entity\EntityDeleteForm;
6
7 /**
8  * Provides a deletion confirmation form for taxonomy vocabulary.
9  */
10 class VocabularyDeleteForm extends EntityDeleteForm {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function getFormId() {
16     return 'taxonomy_vocabulary_confirm_delete';
17   }
18
19   /**
20    * {@inheritdoc}
21    */
22   public function getQuestion() {
23     return $this->t('Are you sure you want to delete the vocabulary %title?', ['%title' => $this->entity->label()]);
24   }
25
26   /**
27    * {@inheritdoc}
28    */
29   public function getDescription() {
30     return $this->t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.');
31   }
32
33   /**
34    * {@inheritdoc}
35    */
36   protected function getDeletionMessage() {
37     return $this->t('Deleted vocabulary %name.', ['%name' => $this->entity->label()]);
38   }
39
40 }