6daeace36a8f3b2e04e3697eaeab86e33e1ebe97
[yaffs-website] / web / core / modules / comment / comment.routing.yml
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
10 comment.admin_approval:
11   path: '/admin/content/comment/approval'
12   defaults:
13     _title: 'Unapproved comments'
14     _form: '\Drupal\comment\Form\CommentAdminOverview'
15     type: 'approval'
16   requirements:
17     _permission: 'administer comments'
18
19 entity.comment.edit_form:
20   path: '/comment/{comment}/edit'
21   defaults:
22     _title: 'Edit'
23     _entity_form: 'comment.default'
24   requirements:
25     _entity_access: 'comment.update'
26     comment: \d+
27
28 comment.approve:
29   path: '/comment/{comment}/approve'
30   defaults:
31     _title: 'Approve'
32     _controller: '\Drupal\comment\Controller\CommentController::commentApprove'
33     entity_type: 'comment'
34   requirements:
35     _entity_access: 'comment.approve'
36     _csrf_token: 'TRUE'
37     comment: \d+
38
39 entity.comment.canonical:
40   path: '/comment/{comment}'
41   defaults:
42     _title_callback: '\Drupal\comment\Controller\CommentController::commentPermalinkTitle'
43     _controller: '\Drupal\comment\Controller\CommentController::commentPermalink'
44   requirements:
45     _entity_access: 'comment.view'
46     comment: \d+
47
48 entity.comment.delete_form:
49   path: '/comment/{comment}/delete'
50   defaults:
51     _title: 'Delete'
52     _entity_form: 'comment.delete'
53   requirements:
54     _entity_access: 'comment.delete'
55     comment: \d+
56
57 comment.multiple_delete_confirm:
58   path: '/admin/content/comment/delete'
59   defaults:
60     _title: 'Delete'
61     _form: '\Drupal\comment\Form\ConfirmDeleteMultiple'
62     entity_type_id: 'comment'
63   requirements:
64     _entity_delete_multiple_access: 'comment'
65
66 entity.comment.delete_multiple_form:
67   path: '/admin/content/comment/delete'
68   defaults:
69     _title: 'Delete'
70     _form: '\Drupal\comment\Form\ConfirmDeleteMultiple'
71     entity_type_id: 'comment'
72   requirements:
73     _entity_delete_multiple_access: 'comment'
74
75 comment.reply:
76   path: '/comment/reply/{entity_type}/{entity}/{field_name}/{pid}'
77   defaults:
78     _controller: '\Drupal\comment\Controller\CommentController::getReplyForm'
79     _title: 'Add new comment'
80     pid: ~
81   requirements:
82     _custom_access: '\Drupal\comment\Controller\CommentController::replyFormAccess'
83   options:
84     parameters:
85       entity:
86         type: entity:{entity_type}
87
88 comment.new_comments_node_links:
89   path: '/comments/render_new_comments_node_links'
90   defaults:
91     _controller: '\Drupal\comment\Controller\CommentController::renderNewCommentsNodeLinks'
92   requirements:
93     _permission: 'access content'
94
95 comment.node_redirect:
96   path: '/comment/{node}/reply'
97   defaults:
98     _controller: 'Drupal\comment\Controller\CommentController::redirectNode'
99   requirements:
100     _entity_access: 'node.view'
101     _module_dependencies: 'node'
102     node: \d+
103
104 entity.comment_type.collection:
105   path: '/admin/structure/comment'
106   defaults:
107     _entity_list: 'comment_type'
108     _title: 'Comment types'
109   requirements:
110     _permission: 'administer comment types'
111   options:
112     _admin_route: TRUE
113
114 entity.comment_type.delete_form:
115   path: '/admin/structure/comment/manage/{comment_type}/delete'
116   defaults:
117     _entity_form: 'comment_type.delete'
118     _title: 'Delete'
119   requirements:
120     _entity_access: 'comment_type.delete'
121   options:
122     _admin_route: TRUE
123
124 entity.comment_type.add_form:
125   path: '/admin/structure/comment/types/add'
126   defaults:
127     _entity_form: 'comment_type.add'
128     _title: 'Add comment type'
129   requirements:
130     _permission: 'administer comment types'
131   options:
132     _admin_route: TRUE
133
134 entity.comment_type.edit_form:
135   path: '/admin/structure/comment/manage/{comment_type}'
136   defaults:
137     _entity_form: 'comment_type.edit'
138     _title: 'Edit'
139   requirements:
140     _entity_access: 'comment_type.update'
141   options:
142     _admin_route: TRUE