You are here

social_ajax_comments.routing.yml in Open Social 8.9

modules/custom/social_ajax_comments/social_ajax_comments.routing.yml

File

modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
View source
  1. social_ajax_comments.cancel:
  2. path: '/ajax_comments/{cid}/cancel'
  3. defaults:
  4. _controller: '\Drupal\social_ajax_comments\Controller\AjaxCommentsController::socialCancel'
  5. requirements:
  6. _access: 'TRUE'
  7. cid: ^[0-9]+
  8. social_ajax_comments.add:
  9. path: '/ajax_comments/add/{entity_type}/{entity}/{field_name}/{pid}'
  10. defaults:
  11. _controller: '\Drupal\social_ajax_comments\Controller\AjaxCommentsController::socialAdd'
  12. pid: ~
  13. requirements:
  14. _access: 'TRUE'
  15. options:
  16. parameters:
  17. entity:
  18. type: entity:{entity_type}