diff --git a/core/modules/taxonomy/src/VocabularyListBuilder.php b/core/modules/taxonomy/src/VocabularyListBuilder.php index b5597bb..d73bc6e 100644 --- a/core/modules/taxonomy/src/VocabularyListBuilder.php +++ b/core/modules/taxonomy/src/VocabularyListBuilder.php @@ -35,7 +35,10 @@ public function getDefaultOperations(EntityInterface $entity) { if (isset($operations['edit'])) { $operations['edit']['title'] = t('Edit vocabulary'); } - + if (isset($operations['delete'])) { + $operations['delete']['title'] = t('Delete vocabulary'); + } + $operations['list'] = array( 'title' => t('List terms'), 'weight' => 0, @@ -46,7 +49,6 @@ public function getDefaultOperations(EntityInterface $entity) { 'weight' => 10, 'url' => Url::fromRoute('entity.taxonomy_term.add_form', ['taxonomy_vocabulary' => $entity->id()]), ); - unset($operations['delete']); return $operations; }