Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / comment / comment.routing.yml
1 comment.admin:
2   path: '/admin/content/comment'
3   defaults:
4     _title: 'Comments'
5     _controller: '\Drupal\comment\Controller\AdminController::adminPage'
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     _controller: '\Drupal\comment\Controller\AdminController::adminPage'
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.reply:
58   path: '/comment/reply/{entity_type}/{entity}/{field_name}/{pid}'
59   defaults:
60     _controller: '\Drupal\comment\Controller\CommentController::getReplyForm'
61     _title: 'Add new comment'
62     pid: ~
63   requirements:
64     _custom_access: '\Drupal\comment\Controller\CommentController::replyFormAccess'
65   options:
66     parameters:
67       entity:
68         type: entity:{entity_type}
69
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
77 comment.node_redirect:
78   path: '/comment/{node}/reply'
79   defaults:
80     _controller: 'Drupal\comment\Controller\CommentController::redirectNode'
81   requirements:
82     _entity_access: 'node.view'
83     _module_dependencies: 'node'
84     node: \d+
85
86 entity.comment_type.collection:
87   path: '/admin/structure/comment'
88   defaults:
89     _entity_list: 'comment_type'
90     _title: 'Comment types'
91   requirements:
92     _permission: 'administer comment types'
93   options:
94     _admin_route: TRUE
95
96 entity.comment_type.delete_form:
97   path: '/admin/structure/comment/manage/{comment_type}/delete'
98   defaults:
99     _entity_form: 'comment_type.delete'
100     _title: 'Delete'
101   requirements:
102     _entity_access: 'comment_type.delete'
103   options:
104     _admin_route: TRUE
105
106 entity.comment_type.add_form:
107   path: '/admin/structure/comment/types/add'
108   defaults:
109     _entity_form: 'comment_type.add'
110     _title: 'Add comment type'
111   requirements:
112     _permission: 'administer comment types'
113   options:
114     _admin_route: TRUE
115
116 entity.comment_type.edit_form:
117   path: '/admin/structure/comment/manage/{comment_type}'
118   defaults:
119     _entity_form: 'comment_type.edit'
120     _title: 'Edit'
121   requirements:
122     _entity_access: 'comment_type.update'
123   options:
124     _admin_route: TRUE