node.routing.yml 3.25 KB
Newer Older
1
2
3
4
5
6
7
8
node.content_overview:
  path: '/admin/content'
  defaults:
    _title: 'Content'
    _content: '\Drupal\node\Controller\NodeController::contentOverview'
  requirements:
    _permission: 'access content overview'

9
node.multiple_delete_confirm:
10
  path: '/admin/content/node/delete'
11
12
13
14
  defaults:
    _form: '\Drupal\node\Form\DeleteMultiple'
  requirements:
    _permission: 'administer nodes'
15

16
node.page_edit:
17
  path: '/node/{node}/edit'
18
19
20
21
  defaults:
    _entity_form: 'node.edit'
  requirements:
    _entity_access: 'node.update'
22

23
24
25
26
27
node.add_page:
  path: '/node/add'
  defaults:
    _title: 'Add page'
    _content: '\Drupal\node\Controller\NodeController::addPage'
28
29
  options:
    _access_mode: 'ANY'
30
31
32
33
34
35
36
37
  requirements:
    _permission: 'administer content types'
    _node_add_access: 'node'

node.add:
  path: '/node/add/{node_type}'
  defaults:
    _content: '\Drupal\node\Controller\NodeController::add'
38
    _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
39
40
41
42
43
44
  requirements:
    _node_add_access: 'node:{node_type}'

node.view:
  path: '/node/{node}'
  defaults:
45
46
    _content: '\Drupal\node\Controller\NodeController::page'
    _title_callback: '\Drupal\node\Controller\NodeController::pageTitle'
47
48
49
  requirements:
    _entity_access: 'node.view'

50
node.delete_confirm:
51
  path: '/node/{node}/delete'
52
53
54
55
56
  defaults:
    _entity_form: 'node.delete'
  requirements:
    _entity_access: 'node.delete'

57
58
59
60
61
62
63
64
65
66
67
68
node.revision_overview:
  path: '/node/{node}/revisions'
  defaults:
    _title: 'Revisions'
    _content: '\Drupal\node\Controller\NodeController::revisionOverview'
  requirements:
    _access_node_revision: 'view'

node.revision_show:
  path: '/node/{node}/revisions/{node_revision}/view'
  defaults:
    _content: '\Drupal\node\Controller\NodeController::revisionShow'
69
    _title_callback: '\Drupal\node\Controller\NodeController::revisionPageTitle'
70
71
72
  requirements:
    _access_node_revision: 'view'

73
node.revision_revert_confirm:
74
  path: '/node/{node}/revisions/{node_revision}/revert'
75
76
77
78
79
  defaults:
    _form: '\Drupal\node\Form\NodeRevisionRevertForm'
  requirements:
    _access_node_revision: 'update'

80
node.revision_delete_confirm:
81
  path: '/node/{node}/revisions/{node_revision}/delete'
82
83
84
85
86
  defaults:
    _form: '\Drupal\node\Form\NodeRevisionDeleteForm'
  requirements:
    _access_node_revision: 'delete'

87
node.overview_types:
88
  path: '/admin/structure/types'
89
90
91
  defaults:
    _content: '\Drupal\Core\Entity\Controller\EntityListController::listing'
    entity_type: 'node_type'
92
    _title: 'Content types'
93
94
95
  requirements:
    _permission: 'administer content types'

96
node.type_add:
97
  path: '/admin/structure/types/add'
98
99
100
101
102
  defaults:
    _entity_form: 'node_type.add'
  requirements:
    _permission: 'administer content types'

103
node.type_edit:
104
  path: '/admin/structure/types/manage/{node_type}'
105
106
107
108
109
  defaults:
    _entity_form: 'node_type.edit'
  requirements:
    _permission: 'administer content types'

110
node.type_delete_confirm:
111
  path: '/admin/structure/types/manage/{node_type}/delete'
112
113
  defaults:
    _entity_form: 'node_type.delete'
114
    _title: 'Delete'
115
116
  requirements:
    _entity_access: 'node_type.delete'
117

118
node.configure_rebuild_confirm:
119
  path: '/admin/reports/status/rebuild'
120
121
122
123
  defaults:
    _form: 'Drupal\node\Form\RebuildPermissionsForm'
  requirements:
    _permission: 'access administration pages'