' . 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 'taxonomy.overview_terms': + case 'entity.taxonomy_term.admin_form': $vocabulary = $route_match->getParameter('taxonomy_vocabulary'); switch ($vocabulary->hierarchy) { case TAXONOMY_HIERARCHY_DISABLED: @@ -120,7 +120,7 @@ function taxonomy_permission() { * Entity URI callback. */ function taxonomy_term_uri($term) { - return new Url('taxonomy.term_page', array( + return new Url('entity.taxonomy_term.canonical', array( 'taxonomy_term' => $term->id(), )); } diff --git a/core/modules/taxonomy/taxonomy.routing.yml b/core/modules/taxonomy/taxonomy.routing.yml index 1182589..14e4afc 100644 --- a/core/modules/taxonomy/taxonomy.routing.yml +++ b/core/modules/taxonomy/taxonomy.routing.yml @@ -6,7 +6,7 @@ taxonomy.vocabulary_list: requirements: _permission: 'administer taxonomy' -taxonomy.term_add: +entity.taxonomy_term.add_form: path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/add' defaults: _content: '\Drupal\taxonomy\Controller\TaxonomyController::addForm' @@ -14,7 +14,7 @@ taxonomy.term_add: requirements: _entity_create_access: 'taxonomy_term:{taxonomy_vocabulary}' -taxonomy.term_edit: +entity.taxonomy_term.edit_form: path: '/taxonomy/term/{taxonomy_term}/edit' defaults: _entity_form: 'taxonomy_term.default' @@ -24,7 +24,7 @@ taxonomy.term_edit: requirements: _entity_access: 'taxonomy_term.update' -taxonomy.term_delete: +entity.taxonomy_term.delete_form: path: '/taxonomy/term/{taxonomy_term}/delete' defaults: _entity_form: 'taxonomy_term.delete' @@ -34,7 +34,7 @@ taxonomy.term_delete: requirements: _entity_access: 'taxonomy_term.delete' -taxonomy.vocabulary_add: +entity.taxonomy_vocabulary.add_form: path: '/admin/structure/taxonomy/add' defaults: _entity_form: 'taxonomy_vocabulary' @@ -42,7 +42,7 @@ taxonomy.vocabulary_add: requirements: _entity_create_access: 'taxonomy_vocabulary' -taxonomy.vocabulary_edit: +entity.taxonomy_vocabulary.edit_form: path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}' defaults: _entity_form: 'taxonomy_vocabulary.default' @@ -50,7 +50,7 @@ taxonomy.vocabulary_edit: requirements: _entity_access: 'taxonomy_vocabulary.update' -taxonomy.vocabulary_delete: +entity.taxonomy_vocabulary.delete_form: path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/delete' defaults: _entity_form: 'taxonomy_vocabulary.delete' @@ -80,7 +80,7 @@ taxonomy.autocomplete_vid: requirements: _permission: 'access content' -taxonomy.overview_terms: +entity.taxonomy_term.admin_form: path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/overview' defaults: _form: 'Drupal\taxonomy\Form\OverviewTerms' @@ -88,7 +88,7 @@ taxonomy.overview_terms: requirements: _entity_access: 'taxonomy_vocabulary.view' -taxonomy.term_page: +entity.taxonomy_term.canonical: path: '/taxonomy/term/{taxonomy_term}' defaults: _content: '\Drupal\taxonomy\Controller\TaxonomyController::termPage' diff --git a/core/modules/taxonomy/tests/src/Menu/TaxonomyLocalTasksTest.php b/core/modules/taxonomy/tests/src/Menu/TaxonomyLocalTasksTest.php index afb8f3c..0a6f031 100644 --- a/core/modules/taxonomy/tests/src/Menu/TaxonomyLocalTasksTest.php +++ b/core/modules/taxonomy/tests/src/Menu/TaxonomyLocalTasksTest.php @@ -28,7 +28,7 @@ public function setUp() { */ public function testTaxonomyPageLocalTasks($route, $subtask = array()) { $tasks = array( - 0 => array('taxonomy.term_page', 'taxonomy.term_edit'), + 0 => array('entity.taxonomy_term.canonical', 'entity.taxonomy_term.edit_form'), ); if ($subtask) $tasks[] = $subtask; $this->assertLocalTasks($route, $tasks); @@ -39,8 +39,8 @@ public function testTaxonomyPageLocalTasks($route, $subtask = array()) { */ public function getTaxonomyPageRoutes() { return array( - array('taxonomy.term_page'), - array('taxonomy.term_edit'), + array('entity.taxonomy_term.canonical'), + array('entity.taxonomy_term.edit_form'), ); }