You are here

comment.routing.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/comment/comment.routing.yml
core/modules/comment/comment.routing.yml

File

core/modules/comment/comment.routing.yml
View source
  1. comment.admin:
  2. path: '/admin/content/comment'
  3. defaults:
  4. _title: 'Comments'
  5. _controller: '\Drupal\comment\Controller\AdminController::adminPage'
  6. type: 'new'
  7. requirements:
  8. _permission: 'administer comments'
  9. comment.admin_approval:
  10. path: '/admin/content/comment/approval'
  11. defaults:
  12. _title: 'Unapproved comments'
  13. _controller: '\Drupal\comment\Controller\AdminController::adminPage'
  14. type: 'approval'
  15. requirements:
  16. _permission: 'administer comments'
  17. entity.comment.edit_form:
  18. path: '/comment/{comment}/edit'
  19. defaults:
  20. _title: 'Edit'
  21. _entity_form: 'comment.default'
  22. requirements:
  23. _entity_access: 'comment.update'
  24. comment: \d+
  25. comment.approve:
  26. path: '/comment/{comment}/approve'
  27. defaults:
  28. _title: 'Approve'
  29. _controller: '\Drupal\comment\Controller\CommentController::commentApprove'
  30. entity_type: 'comment'
  31. requirements:
  32. _entity_access: 'comment.approve'
  33. _csrf_token: 'TRUE'
  34. comment: \d+
  35. entity.comment.canonical:
  36. path: '/comment/{comment}'
  37. defaults:
  38. _title_callback: '\Drupal\comment\Controller\CommentController::commentPermalinkTitle'
  39. _controller: '\Drupal\comment\Controller\CommentController::commentPermalink'
  40. requirements:
  41. _entity_access: 'comment.view'
  42. comment: \d+
  43. entity.comment.delete_form:
  44. path: '/comment/{comment}/delete'
  45. defaults:
  46. _title: 'Delete'
  47. _entity_form: 'comment.delete'
  48. requirements:
  49. _entity_access: 'comment.delete'
  50. comment: \d+
  51. comment.reply:
  52. path: '/comment/reply/{entity_type}/{entity}/{field_name}/{pid}'
  53. defaults:
  54. _controller: '\Drupal\comment\Controller\CommentController::getReplyForm'
  55. _title: 'Add new comment'
  56. pid: ~
  57. requirements:
  58. _custom_access: '\Drupal\comment\Controller\CommentController::replyFormAccess'
  59. options:
  60. parameters:
  61. entity:
  62. type: entity:{entity_type}
  63. comment.new_comments_node_links:
  64. path: '/comments/render_new_comments_node_links'
  65. defaults:
  66. _controller: '\Drupal\comment\Controller\CommentController::renderNewCommentsNodeLinks'
  67. requirements:
  68. _permission: 'access content'
  69. comment.node_redirect:
  70. path: '/comment/{node}/reply'
  71. defaults:
  72. _controller: 'Drupal\comment\Controller\CommentController::redirectNode'
  73. requirements:
  74. _entity_access: 'node.view'
  75. _module_dependencies: 'node'
  76. node: \d+
  77. entity.comment_type.collection:
  78. path: '/admin/structure/comment'
  79. defaults:
  80. _entity_list: 'comment_type'
  81. _title: 'Comment types'
  82. requirements:
  83. _permission: 'administer comment types'
  84. options:
  85. _admin_route: TRUE
  86. entity.comment_type.delete_form:
  87. path: '/admin/structure/comment/manage/{comment_type}/delete'
  88. defaults:
  89. _entity_form: 'comment_type.delete'
  90. _title: 'Delete'
  91. requirements:
  92. _entity_access: 'comment_type.delete'
  93. options:
  94. _admin_route: TRUE
  95. entity.comment_type.add_form:
  96. path: '/admin/structure/comment/types/add'
  97. defaults:
  98. _entity_form: 'comment_type.add'
  99. _title: 'Add comment type'
  100. requirements:
  101. _permission: 'administer comment types'
  102. options:
  103. _admin_route: TRUE
  104. entity.comment_type.edit_form:
  105. path: '/admin/structure/comment/manage/{comment_type}'
  106. defaults:
  107. _entity_form: 'comment_type.edit'
  108. _title: 'Edit'
  109. requirements:
  110. _entity_access: 'comment_type.update'
  111. options:
  112. _admin_route: TRUE