You are here

ajax_comments.routing.yml in AJAX Comments 8

File

ajax_comments.routing.yml
View source
  1. ajax_comments.settings:
  2. path: '/admin/config/content/ajax_comments'
  3. defaults:
  4. _form: '\Drupal\ajax_comments\Form\SettingsForm'
  5. _title: 'Ajax comments'
  6. requirements:
  7. _permission: 'administer site configuration'
  8. ajax_comments.edit:
  9. path: '/ajax_comments/{comment}/edit'
  10. defaults:
  11. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::edit'
  12. requirements:
  13. _entity_access: 'comment.update'
  14. options:
  15. parameters:
  16. comment:
  17. type: entity:comment
  18. ajax_comments.save:
  19. path: '/ajax_comments/{comment}/save'
  20. defaults:
  21. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::save'
  22. requirements:
  23. _entity_access: 'comment.update'
  24. options:
  25. parameters:
  26. comment:
  27. type: entity:comment
  28. ajax_comments.save_reply:
  29. path: '/ajax_comments/save_reply/{entity_type}/{entity}/{field_name}/{pid}'
  30. defaults:
  31. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::saveReply'
  32. requirements:
  33. _access: 'TRUE'
  34. pid: ^[0-9]+
  35. options:
  36. parameters:
  37. entity:
  38. type: entity:{entity_type}
  39. ajax_comments.cancel:
  40. path: '/ajax_comments/{cid}/cancel'
  41. defaults:
  42. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::cancel'
  43. requirements:
  44. _access: 'TRUE'
  45. cid: ^[0-9]+
  46. ajax_comments.delete:
  47. path: '/ajax_comments/{comment}/delete'
  48. defaults:
  49. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::delete'
  50. _title: 'Delete comment'
  51. requirements:
  52. _entity_access: 'comment.delete'
  53. options:
  54. parameters:
  55. comment:
  56. type: entity:comment
  57. ajax_comments.add:
  58. path: '/ajax_comments/add/{entity_type}/{entity}/{field_name}/{pid}'
  59. defaults:
  60. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::add'
  61. pid: ~
  62. requirements:
  63. _access: 'TRUE'
  64. options:
  65. parameters:
  66. entity:
  67. type: entity:{entity_type}
  68. ajax_comments.reply:
  69. path: '/ajax_comments/reply/{entity_type}/{entity}/{field_name}/{pid}'
  70. defaults:
  71. _controller: '\Drupal\ajax_comments\Controller\AjaxCommentsController::reply'
  72. pid: ~
  73. requirements:
  74. _access: 'TRUE'
  75. pid: ^[0-9]+
  76. options:
  77. parameters:
  78. entity:
  79. type: entity:{entity_type}