diff --git a/core/modules/taxonomy/src/VocabularyListBuilder.php b/core/modules/taxonomy/src/VocabularyListBuilder.php index 8503c28..923705a 100644 --- a/core/modules/taxonomy/src/VocabularyListBuilder.php +++ b/core/modules/taxonomy/src/VocabularyListBuilder.php @@ -33,9 +33,13 @@ public function getDefaultOperations(EntityInterface $entity) { $operations = parent::getDefaultOperations($entity); if (isset($operations['edit'])) { - $operations['edit']['title'] = t('Edit vocabulary'); + $operations['edit']['title'] = t('Edit'); + $operations['edit']['weight'] = 26; } + if (isset($operations['delete'])) { + $operations['delete']['title'] = t('Delete'); + } $operations['list'] = [ 'title' => t('List terms'), 'weight' => 0, @@ -43,10 +47,8 @@ public function getDefaultOperations(EntityInterface $entity) { ]; $operations['add'] = [ 'title' => t('Add terms'), - 'weight' => 10, 'url' => Url::fromRoute('entity.taxonomy_term.add_form', ['taxonomy_vocabulary' => $entity->id()]), ]; - unset($operations['delete']); return $operations; }