diff --git a/core/modules/taxonomy/src/Entity/Term.php b/core/modules/taxonomy/src/Entity/Term.php index abe67da..7f6ddc1 100644 --- a/core/modules/taxonomy/src/Entity/Term.php +++ b/core/modules/taxonomy/src/Entity/Term.php @@ -46,7 +46,7 @@ * "canonical" = "entity.taxonomy_term.canonical", * "delete-form" = "entity.taxonomy_term.delete_form", * "edit-form" = "entity.taxonomy_term.edit_form", - * "admin-form" = "entity.taxonomy_term.admin_form", + * "admin-form" = "entity.taxonomy_vocabulary.overview_form", * }, * permission_granularity = "bundle" * ) diff --git a/core/modules/taxonomy/src/Entity/Vocabulary.php b/core/modules/taxonomy/src/Entity/Vocabulary.php index 4875575..eff1099 100644 --- a/core/modules/taxonomy/src/Entity/Vocabulary.php +++ b/core/modules/taxonomy/src/Entity/Vocabulary.php @@ -38,7 +38,7 @@ * "add-form" = "entity.taxonomy_vocabulary.add_form", * "delete-form" = "entity.taxonomy_vocabulary.delete_form", * "reset" = "taxonomy.vocabulary_reset", - * "overview-form" = "entity.taxonomy_term.admin_form", + * "overview-form" = "entity.taxonomy_vocabulary.overview_form", * "edit-form" = "entity.taxonomy_vocabulary.edit_form" * } * ) diff --git a/core/modules/taxonomy/taxonomy.links.action.yml b/core/modules/taxonomy/taxonomy.links.action.yml index 1b93140..cd891ea 100644 --- a/core/modules/taxonomy/taxonomy.links.action.yml +++ b/core/modules/taxonomy/taxonomy.links.action.yml @@ -8,4 +8,4 @@ taxonomy.term_add: route_name: entity.taxonomy_term.add_form title: 'Add term' appears_on: - - entity.taxonomy_term.admin_form + - entity.taxonomy_vocabulary.overview_form diff --git a/core/modules/taxonomy/taxonomy.links.task.yml b/core/modules/taxonomy/taxonomy.links.task.yml index a0bc9f7..fef9e90 100644 --- a/core/modules/taxonomy/taxonomy.links.task.yml +++ b/core/modules/taxonomy/taxonomy.links.task.yml @@ -8,12 +8,12 @@ entity.taxonomy_term.edit_form: route_name: entity.taxonomy_term.edit_form base_route: entity.taxonomy_term.canonical -entity.taxonomy_term.admin_form: +entity.taxonomy_vocabulary.overview_form: title: 'List' - route_name: entity.taxonomy_term.admin_form - base_route: entity.taxonomy_term.admin_form + route_name: entity.taxonomy_vocabulary.overview_form + base_route: entity.taxonomy_vocabulary.overview_form entity.taxonomy_vocabulary.edit_form: title: 'Edit' route_name: entity.taxonomy_vocabulary.edit_form - base_route: entity.taxonomy_term.admin_form + base_route: entity.taxonomy_vocabulary.overview_form diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index 1606edb..f1d1b49 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -79,7 +79,7 @@ function taxonomy_help($route_name, RouteMatchInterface $route_match) { $output = '
' . t('Taxonomy is for categorizing content. Terms are grouped into vocabularies. For example, a vocabulary called "Fruit" would contain the terms "Apple" and "Banana".') . '
'; return $output; - case 'entity.taxonomy_term.admin_form': + case 'entity.taxonomy_vocabulary.overview_form': $vocabulary = $route_match->getParameter('taxonomy_vocabulary'); switch ($vocabulary->hierarchy) { case TAXONOMY_HIERARCHY_DISABLED: diff --git a/core/modules/taxonomy/taxonomy.routing.yml b/core/modules/taxonomy/taxonomy.routing.yml index 14e4afc..442d495 100644 --- a/core/modules/taxonomy/taxonomy.routing.yml +++ b/core/modules/taxonomy/taxonomy.routing.yml @@ -80,7 +80,7 @@ taxonomy.autocomplete_vid: requirements: _permission: 'access content' -entity.taxonomy_term.admin_form: +entity.taxonomy_vocabulary.overview_form: path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/overview' defaults: _form: 'Drupal\taxonomy\Form\OverviewTerms'