comment.routing.yml

Same filename and directory in other branches
  1. 11.x core/modules/comment/comment.routing.yml
  2. 10 core/modules/comment/comment.routing.yml
  3. 9 core/modules/comment/comment.routing.yml
  4. 8.9.x core/modules/comment/comment.routing.yml
core/modules/comment/comment.routing.yml
13 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.node_redirect:
  81. path: '/comment/{node}/reply'
  82. defaults:
  83. _controller: '\Drupal\comment\Controller\CommentController::redirectNode'
  84. requirements:
  85. _entity_access: 'node.view'
  86. _module_dependencies: 'node'
  87. node: \d+
  88. entity.comment_type.collection:
  89. path: '/admin/structure/comment'
  90. defaults:
  91. _entity_list: 'comment_type'
  92. _title: 'Comment types'
  93. requirements:
  94. _permission: 'administer comment types'
  95. options:
  96. _admin_route: TRUE
  97. entity.comment_type.delete_form:
  98. path: '/admin/structure/comment/manage/{comment_type}/delete'
  99. defaults:
  100. _entity_form: 'comment_type.delete'
  101. _title: 'Delete'
  102. requirements:
  103. _entity_access: 'comment_type.delete'
  104. options:
  105. _admin_route: TRUE
  106. entity.comment_type.add_form:
  107. path: '/admin/structure/comment/types/add'
  108. defaults:
  109. _entity_form: 'comment_type.add'
  110. _title: 'Add comment type'
  111. requirements:
  112. _permission: 'administer comment types'
  113. options:
  114. _admin_route: TRUE
  115. entity.comment_type.edit_form:
  116. path: '/admin/structure/comment/manage/{comment_type}'
  117. defaults:
  118. _entity_form: 'comment_type.edit'
  119. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  120. requirements:
  121. _entity_access: 'comment_type.update'
  122. options:
  123. _admin_route: TRUE

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