social_ajax_comments.routing.yml in Open Social 10.3.x
Same filename and directory in other branches
- 8.9 modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
- 8.8 modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
- 10.0.x modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
- 10.1.x modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
- 10.2.x modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
modules/custom/social_ajax_comments/social_ajax_comments.routing.yml
1 string reference to YAML keys in social_ajax_comments.routing.yml
- RouteSubscriber::alterRoutes in modules/
social_features/ social_post/ modules/ social_post_album/ src/ Routing/ RouteSubscriber.php - Alters existing routes for a specific collection.
File
modules/custom/social_ajax_comments/social_ajax_comments.routing.ymlView source
- social_ajax_comments.cancel:
- path: '/ajax_comments/{cid}/cancel'
- defaults:
- _controller: '\Drupal\social_ajax_comments\Controller\AjaxCommentsController::socialCancel'
- requirements:
- _access: 'TRUE'
- cid: ^[0-9]+
-
- social_ajax_comments.add:
- path: '/ajax_comments/add/{entity_type}/{entity}/{field_name}/{pid}'
- defaults:
- _controller: '\Drupal\social_ajax_comments\Controller\AjaxCommentsController::socialAdd'
- pid: ~
- requirements:
- _access: 'TRUE'
- options:
- parameters:
- entity:
- type: entity:{entity_type}