comment.routing.yml

Same filename and directory in other branches
  1. 10 core/modules/comment/comment.routing.yml
  2. 9 core/modules/comment/comment.routing.yml
  3. 8.9.x core/modules/comment/comment.routing.yml
  4. main core/modules/comment/comment.routing.yml
core/modules/comment/comment.routing.yml
15 string references to YAML keys in comment.routing.yml
CommentAdminOverview::submitForm in core/modules/comment/src/Form/CommentAdminOverview.php
Form submission handler.
CommentBreadcrumbBuilder::applies in core/modules/comment/src/CommentBreadcrumbBuilder.php
Whether this breadcrumb builder should be used to build the breadcrumb.
CommentController::redirectNode in core/modules/comment/src/Controller/CommentController.php
Redirects legacy node links to the new path.
CommentHooks::help in core/modules/comment/src/Hook/CommentHooks.php
Implements hook_help().
CommentInterfaceTest::testCommentInterface in core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
Tests the comment interface.

... See full list

File

core/modules/comment/comment.routing.yml

View source
  1. comment.admin:
  2. path: '/admin/content/comment'
  3. defaults:
  4. _title: 'Comments'
  5. _form: '\Drupal\comment\Form\CommentAdminOverview'
  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. _form: '\Drupal\comment\Form\CommentAdminOverview'
  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.multiple_delete_confirm:
  52. path: '/admin/content/comment/delete'
  53. defaults:
  54. _title: 'Delete'
  55. _form: '\Drupal\comment\Form\ConfirmDeleteMultiple'
  56. entity_type_id: 'comment'
  57. requirements:
  58. _entity_delete_multiple_access: 'comment'
  59. entity.comment.delete_multiple_form:
  60. path: '/admin/content/comment/delete'
  61. defaults:
  62. _title: 'Delete'
  63. _form: '\Drupal\comment\Form\ConfirmDeleteMultiple'
  64. entity_type_id: 'comment'
  65. requirements:
  66. _entity_delete_multiple_access: 'comment'
  67. comment.reply:
  68. path: '/comment/reply/{entity_type}/{entity}/{field_name}/{pid}'
  69. defaults:
  70. _controller: '\Drupal\comment\Controller\CommentController::getReplyForm'
  71. _title: 'Add new comment'
  72. _title_callback: '\Drupal\comment\Controller\CommentController::replyFormTitle'
  73. pid: ~
  74. requirements:
  75. _custom_access: '\Drupal\comment\Controller\CommentController::replyFormAccess'
  76. options:
  77. parameters:
  78. entity:
  79. type: entity:{entity_type}
  80. comment.new_comments_node_links:
  81. path: '/comments/render_new_comments_node_links'
  82. defaults:
  83. _controller: '\Drupal\comment\Controller\CommentController::renderNewCommentsNodeLinks'
  84. requirements:
  85. _permission: 'access content'
  86. deprecated:
  87. package: 'drupal/core'
  88. version: '11.3.0'
  89. message: 'The route "comment.new_comments_node_links" is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use "history.new_comments_node_links" route instead. See https://www.drupal.org/node/3543039'
  90. comment.node_redirect:
  91. path: '/comment/{node}/reply'
  92. defaults:
  93. _controller: '\Drupal\comment\Controller\CommentController::redirectNode'
  94. requirements:
  95. _entity_access: 'node.view'
  96. _module_dependencies: 'node'
  97. node: \d+
  98. entity.comment_type.collection:
  99. path: '/admin/structure/comment'
  100. defaults:
  101. _entity_list: 'comment_type'
  102. _title: 'Comment types'
  103. requirements:
  104. _permission: 'administer comment types'
  105. options:
  106. _admin_route: TRUE
  107. entity.comment_type.delete_form:
  108. path: '/admin/structure/comment/manage/{comment_type}/delete'
  109. defaults:
  110. _entity_form: 'comment_type.delete'
  111. _title: 'Delete'
  112. requirements:
  113. _entity_access: 'comment_type.delete'
  114. options:
  115. _admin_route: TRUE
  116. entity.comment_type.add_form:
  117. path: '/admin/structure/comment/types/add'
  118. defaults:
  119. _entity_form: 'comment_type.add'
  120. _title: 'Add comment type'
  121. requirements:
  122. _permission: 'administer comment types'
  123. options:
  124. _admin_route: TRUE
  125. entity.comment_type.edit_form:
  126. path: '/admin/structure/comment/manage/{comment_type}'
  127. defaults:
  128. _entity_form: 'comment_type.edit'
  129. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  130. requirements:
  131. _entity_access: 'comment_type.update'
  132. options:
  133. _admin_route: TRUE

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.