comment.routing.yml

Same filename in other branches
  1. 9 core/modules/comment/comment.routing.yml
  2. 8.9.x core/modules/comment/comment.routing.yml
  3. 10 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.
CommentInterfaceTest::testCommentInterface in core/modules/comment/tests/src/Functional/CommentInterfaceTest.php
Tests the comment interface.
CommentLazyBuilders::buildLinks in core/modules/comment/src/CommentLazyBuilders.php
Build the default links (reply, edit, delete …) for a comment.

... 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. pid: ~
  73. requirements:
  74. _custom_access: '\Drupal\comment\Controller\CommentController::replyFormAccess'
  75. options:
  76. parameters:
  77. entity:
  78. type: entity:{entity_type}
  79. comment.new_comments_node_links:
  80. path: '/comments/render_new_comments_node_links'
  81. defaults:
  82. _controller: '\Drupal\comment\Controller\CommentController::renderNewCommentsNodeLinks'
  83. requirements:
  84. _permission: 'access content'
  85. comment.node_redirect:
  86. path: '/comment/{node}/reply'
  87. defaults:
  88. _controller: '\Drupal\comment\Controller\CommentController::redirectNode'
  89. requirements:
  90. _entity_access: 'node.view'
  91. _module_dependencies: 'node'
  92. node: \d+
  93. entity.comment_type.collection:
  94. path: '/admin/structure/comment'
  95. defaults:
  96. _entity_list: 'comment_type'
  97. _title: 'Comment types'
  98. requirements:
  99. _permission: 'administer comment types'
  100. options:
  101. _admin_route: TRUE
  102. entity.comment_type.delete_form:
  103. path: '/admin/structure/comment/manage/{comment_type}/delete'
  104. defaults:
  105. _entity_form: 'comment_type.delete'
  106. _title: 'Delete'
  107. requirements:
  108. _entity_access: 'comment_type.delete'
  109. options:
  110. _admin_route: TRUE
  111. entity.comment_type.add_form:
  112. path: '/admin/structure/comment/types/add'
  113. defaults:
  114. _entity_form: 'comment_type.add'
  115. _title: 'Add comment type'
  116. requirements:
  117. _permission: 'administer comment types'
  118. options:
  119. _admin_route: TRUE
  120. entity.comment_type.edit_form:
  121. path: '/admin/structure/comment/manage/{comment_type}'
  122. defaults:
  123. _entity_form: 'comment_type.edit'
  124. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  125. requirements:
  126. _entity_access: 'comment_type.update'
  127. options:
  128. _admin_route: TRUE

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