comment.routing.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. requirements:
  57. _permission: 'administer comments'
  58. comment.reply:
  59. path: '/comment/reply/{entity_type}/{entity}/{field_name}/{pid}'
  60. defaults:
  61. _controller: '\Drupal\comment\Controller\CommentController::getReplyForm'
  62. _title: 'Add new comment'
  63. pid: ~
  64. requirements:
  65. _custom_access: '\Drupal\comment\Controller\CommentController::replyFormAccess'
  66. options:
  67. parameters:
  68. entity:
  69. type: entity:{entity_type}
  70. comment.new_comments_node_links:
  71. path: '/comments/render_new_comments_node_links'
  72. defaults:
  73. _controller: '\Drupal\comment\Controller\CommentController::renderNewCommentsNodeLinks'
  74. requirements:
  75. _permission: 'access content'
  76. comment.node_redirect:
  77. path: '/comment/{node}/reply'
  78. defaults:
  79. _controller: 'Drupal\comment\Controller\CommentController::redirectNode'
  80. requirements:
  81. _entity_access: 'node.view'
  82. _module_dependencies: 'node'
  83. node: \d+
  84. entity.comment_type.collection:
  85. path: '/admin/structure/comment'
  86. defaults:
  87. _entity_list: 'comment_type'
  88. _title: 'Comment types'
  89. requirements:
  90. _permission: 'administer comment types'
  91. options:
  92. _admin_route: TRUE
  93. entity.comment_type.delete_form:
  94. path: '/admin/structure/comment/manage/{comment_type}/delete'
  95. defaults:
  96. _entity_form: 'comment_type.delete'
  97. _title: 'Delete'
  98. requirements:
  99. _entity_access: 'comment_type.delete'
  100. options:
  101. _admin_route: TRUE
  102. entity.comment_type.add_form:
  103. path: '/admin/structure/comment/types/add'
  104. defaults:
  105. _entity_form: 'comment_type.add'
  106. _title: 'Add comment type'
  107. requirements:
  108. _permission: 'administer comment types'
  109. options:
  110. _admin_route: TRUE
  111. entity.comment_type.edit_form:
  112. path: '/admin/structure/comment/manage/{comment_type}'
  113. defaults:
  114. _entity_form: 'comment_type.edit'
  115. _title: 'Edit'
  116. requirements:
  117. _entity_access: 'comment_type.update'
  118. options:
  119. _admin_route: TRUE