diff --git a/core/modules/comment/comment.local_tasks.yml b/core/modules/comment/comment.local_tasks.yml index 1c0c901..3119823 100644 --- a/core/modules/comment/comment.local_tasks.yml +++ b/core/modules/comment/comment.local_tasks.yml @@ -1,14 +1,14 @@ comment.permalink_tab: - route_name: comment_permalink + route_name: comment.permalink title: 'View comment' tab_root_id: comment.permalink_tab comment.edit_page_tab: - route_name: comment_edit_page + route_name: comment.edit_page title: 'Edit' tab_root_id: comment.permalink_tab weight: 0 comment.confirm_delete_tab: - route_name: comment_confirm_delete + route_name: comment.confirm_delete title: 'Delete' tab_root_id: comment.permalink_tab weight: 10 diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 2034cda..b2ca741 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -223,32 +223,6 @@ function comment_menu() { 'route_name' => 'comment.admin_approval', 'type' => MENU_LOCAL_TASK, ); - $items['comment/%comment'] = array( - 'title' => 'Comment permalink', - 'route_name' => 'comment.permalink', - ); - $items['comment/%comment/view'] = array( - 'title' => 'View comment', - 'type' => MENU_DEFAULT_LOCAL_TASK, - ); - // Every other comment path uses %, but this one loads the comment directly, - // so we don't end up loading it twice (in the page and access callback). - $items['comment/%comment/edit'] = array( - 'title' => 'Edit', - 'type' => MENU_LOCAL_TASK, - 'route_name' => 'comment.edit_page', - ); - $items['comment/%comment/approve'] = array( - 'title' => 'Approve', - 'weight' => 10, - 'route_name' => 'comment.approve', - ); - $items['comment/%comment/delete'] = array( - 'title' => 'Delete', - 'type' => MENU_LOCAL_TASK, - 'route_name' => 'comment.confirm_delete', - 'weight' => 20, - ); return $items; } diff --git a/core/modules/comment/comment.routing.yml b/core/modules/comment/comment.routing.yml index eac774a..3a2ea5c 100644 --- a/core/modules/comment/comment.routing.yml +++ b/core/modules/comment/comment.routing.yml @@ -19,6 +19,7 @@ comment.admin_approval: comment.edit_page: path: '/comment/{comment}/edit' defaults: + _title: 'Edit' _entity_form: 'comment.default' requirements: _entity_access: 'comment.update' @@ -26,6 +27,7 @@ comment.edit_page: comment.approve: path: '/comment/{comment}/approve' defaults: + _title: 'Approve' _content: '\Drupal\comment\Controller\CommentController::commentApprove' entity_type: 'comment' requirements: @@ -34,6 +36,7 @@ comment.approve: comment.permalink: path: '/comment/{comment}' defaults: + _title: 'Comment permalink' _controller: '\Drupal\comment\Controller\CommentController::commentPermalink' requirements: _entity_access: 'comment.view' @@ -41,6 +44,7 @@ comment.permalink: comment.confirm_delete: path: '/comment/{comment}/delete' defaults: + _title: 'Delete' _entity_form: 'comment.delete' requirements: _entity_access: 'comment.delete'