Pull merge.
[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  * @internal
11  */
12 class VocabularyDeleteForm extends EntityDeleteForm {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function getFormId() {
18     return 'taxonomy_vocabulary_confirm_delete';
19   }
20
21   /**
22    * {@inheritdoc}
23    */
24   public function getQuestion() {
25     return $this->t('Are you sure you want to delete the vocabulary %title?', ['%title' => $this->entity->label()]);
26   }
27
28   /**
29    * {@inheritdoc}
30    */
31   public function getDescription() {
32     return $this->t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.');
33   }
34
35   /**
36    * {@inheritdoc}
37    */
38   protected function getDeletionMessage() {
39     return $this->t('Deleted vocabulary %name.', ['%name' => $this->entity->label()]);
40   }
41
42 }