node.routing.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. node.multiple_delete_confirm:
  2. path: '/admin/content/node/delete'
  3. defaults:
  4. _form: '\Drupal\node\Form\DeleteMultiple'
  5. entity_type_id: 'node'
  6. requirements:
  7. _entity_delete_multiple_access: 'node'
  8. entity.node.delete_multiple_form:
  9. path: '/admin/content/node/delete'
  10. defaults:
  11. _form: '\Drupal\node\Form\DeleteMultiple'
  12. entity_type_id: 'node'
  13. requirements:
  14. _entity_delete_multiple_access: 'node'
  15. node.add_page:
  16. path: '/node/add'
  17. defaults:
  18. _title: 'Add content'
  19. _controller: '\Drupal\node\Controller\NodeController::addPage'
  20. options:
  21. _node_operation_route: TRUE
  22. requirements:
  23. _node_add_access: 'node'
  24. node.add:
  25. path: '/node/add/{node_type}'
  26. defaults:
  27. _controller: '\Drupal\node\Controller\NodeController::add'
  28. _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
  29. requirements:
  30. _node_add_access: 'node:{node_type}'
  31. options:
  32. _node_operation_route: TRUE
  33. parameters:
  34. node_type:
  35. with_config_overrides: TRUE
  36. entity.node.preview:
  37. path: '/node/preview/{node_preview}/{view_mode_id}'
  38. defaults:
  39. _controller: '\Drupal\node\Controller\NodePreviewController::view'
  40. _title_callback: '\Drupal\node\Controller\NodePreviewController::title'
  41. requirements:
  42. _node_preview_access: '{node_preview}'
  43. options:
  44. parameters:
  45. node_preview:
  46. type: 'node_preview'
  47. entity.node.version_history:
  48. path: '/node/{node}/revisions'
  49. defaults:
  50. _title: 'Revisions'
  51. _controller: '\Drupal\node\Controller\NodeController::revisionOverview'
  52. requirements:
  53. _access_node_revision: 'view'
  54. node: \d+
  55. options:
  56. _node_operation_route: TRUE
  57. entity.node.revision:
  58. path: '/node/{node}/revisions/{node_revision}/view'
  59. defaults:
  60. _controller: '\Drupal\node\Controller\NodeController::revisionShow'
  61. _title_callback: '\Drupal\node\Controller\NodeController::revisionPageTitle'
  62. requirements:
  63. _access_node_revision: 'view'
  64. node: \d+
  65. node.revision_revert_confirm:
  66. path: '/node/{node}/revisions/{node_revision}/revert'
  67. defaults:
  68. _form: '\Drupal\node\Form\NodeRevisionRevertForm'
  69. _title: 'Revert to earlier revision'
  70. requirements:
  71. _access_node_revision: 'update'
  72. node: \d+
  73. options:
  74. _node_operation_route: TRUE
  75. node.revision_revert_translation_confirm:
  76. path: '/node/{node}/revisions/{node_revision}/revert/{langcode}'
  77. defaults:
  78. _form: '\Drupal\node\Form\NodeRevisionRevertTranslationForm'
  79. _title: 'Revert to earlier revision of a translation'
  80. requirements:
  81. _access_node_revision: 'update'
  82. node: \d+
  83. options:
  84. _node_operation_route: TRUE
  85. node.revision_delete_confirm:
  86. path: '/node/{node}/revisions/{node_revision}/delete'
  87. defaults:
  88. _form: '\Drupal\node\Form\NodeRevisionDeleteForm'
  89. _title: 'Delete earlier revision'
  90. requirements:
  91. _access_node_revision: 'delete'
  92. node: \d+
  93. options:
  94. _node_operation_route: TRUE
  95. entity.node_type.collection:
  96. path: '/admin/structure/types'
  97. defaults:
  98. _entity_list: 'node_type'
  99. _title: 'Content types'
  100. requirements:
  101. _permission: 'administer content types'
  102. node.type_add:
  103. path: '/admin/structure/types/add'
  104. defaults:
  105. _entity_form: 'node_type.add'
  106. _title: 'Add content type'
  107. requirements:
  108. _permission: 'administer content types'
  109. entity.node_type.edit_form:
  110. path: '/admin/structure/types/manage/{node_type}'
  111. defaults:
  112. _entity_form: 'node_type.edit'
  113. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  114. requirements:
  115. _permission: 'administer content types'
  116. entity.node_type.delete_form:
  117. path: '/admin/structure/types/manage/{node_type}/delete'
  118. defaults:
  119. _entity_form: 'node_type.delete'
  120. _title: 'Delete'
  121. requirements:
  122. _entity_access: 'node_type.delete'
  123. node.configure_rebuild_confirm:
  124. path: '/admin/reports/status/rebuild'
  125. defaults:
  126. _form: 'Drupal\node\Form\RebuildPermissionsForm'
  127. requirements:
  128. _permission: 'access administration pages'