Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 8 |
| VocabularyDeleteForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 8 |
| getFormId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getQuestion | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getDescription | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getDeletionMessage | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\taxonomy\Form\VocabularyDeleteForm. | |
| */ | |
| namespace Drupal\taxonomy\Form; | |
| use Drupal\Core\Entity\EntityDeleteForm; | |
| /** | |
| * Provides a deletion confirmation form for taxonomy vocabulary. | |
| */ | |
| class VocabularyDeleteForm extends EntityDeleteForm { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getFormId() { | |
| return 'taxonomy_vocabulary_confirm_delete'; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getQuestion() { | |
| return $this->t('Are you sure you want to delete the vocabulary %title?', array('%title' => $this->entity->label())); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getDescription() { | |
| return $this->t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.'); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function getDeletionMessage() { | |
| return $this->t('Deleted vocabulary %name.', array('%name' => $this->entity->label())); | |
| } | |
| } |