diff --git a/core/modules/taxonomy/src/VocabularyListBuilder.php b/core/modules/taxonomy/src/VocabularyListBuilder.php index 8503c28..dea8f95 100644 --- a/core/modules/taxonomy/src/VocabularyListBuilder.php +++ b/core/modules/taxonomy/src/VocabularyListBuilder.php @@ -36,6 +36,10 @@ public function getDefaultOperations(EntityInterface $entity) { $operations['edit']['title'] = t('Edit vocabulary'); } + if (isset($operations['delete'])) { + $operations['delete']['title'] = t('Delete'); + } + $operations['list'] = [ 'title' => t('List terms'), 'weight' => 0, @@ -46,7 +50,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; }