node.routing.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. _entity_form: 'node.default'
  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. type: entity:node_type
  36. with_config_overrides: TRUE
  37. entity.node.preview:
  38. path: '/node/preview/{node_preview}/{view_mode_id}'
  39. defaults:
  40. _controller: '\Drupal\node\Controller\NodePreviewController::view'
  41. _title_callback: '\Drupal\node\Controller\NodePreviewController::title'
  42. requirements:
  43. _node_preview_access: '{node_preview}'
  44. options:
  45. parameters:
  46. node_preview:
  47. type: 'node_preview'
  48. entity.node.version_history:
  49. path: '/node/{node}/revisions'
  50. defaults:
  51. _title: 'Revisions'
  52. _controller: '\Drupal\node\Controller\NodeController::revisionOverview'
  53. requirements:
  54. _access_node_revision: 'view'
  55. node: \d+
  56. options:
  57. _node_operation_route: TRUE
  58. entity.node.revision:
  59. path: '/node/{node}/revisions/{node_revision}/view'
  60. defaults:
  61. _controller: '\Drupal\node\Controller\NodeController::revisionShow'
  62. _title_callback: '\Drupal\node\Controller\NodeController::revisionPageTitle'
  63. requirements:
  64. _access_node_revision: 'view'
  65. node: \d+
  66. node.revision_revert_confirm:
  67. path: '/node/{node}/revisions/{node_revision}/revert'
  68. defaults:
  69. _form: '\Drupal\node\Form\NodeRevisionRevertForm'
  70. _title: 'Revert to earlier revision'
  71. requirements:
  72. _access_node_revision: 'update'
  73. node: \d+
  74. options:
  75. _node_operation_route: TRUE
  76. node.revision_revert_translation_confirm:
  77. path: '/node/{node}/revisions/{node_revision}/revert/{langcode}'
  78. defaults:
  79. _form: '\Drupal\node\Form\NodeRevisionRevertTranslationForm'
  80. _title: 'Revert to earlier revision of a translation'
  81. requirements:
  82. _access_node_revision: 'update'
  83. node: \d+
  84. options:
  85. _node_operation_route: TRUE
  86. node.revision_delete_confirm:
  87. path: '/node/{node}/revisions/{node_revision}/delete'
  88. defaults:
  89. _form: '\Drupal\node\Form\NodeRevisionDeleteForm'
  90. _title: 'Delete earlier revision'
  91. requirements:
  92. _access_node_revision: 'delete'
  93. node: \d+
  94. options:
  95. _node_operation_route: TRUE
  96. entity.node_type.collection:
  97. path: '/admin/structure/types'
  98. defaults:
  99. _entity_list: 'node_type'
  100. _title: 'Content types'
  101. requirements:
  102. _permission: 'administer content types'
  103. node.type_add:
  104. path: '/admin/structure/types/add'
  105. defaults:
  106. _entity_form: 'node_type.add'
  107. _title: 'Add content type'
  108. requirements:
  109. _permission: 'administer content types'
  110. entity.node_type.edit_form:
  111. path: '/admin/structure/types/manage/{node_type}'
  112. defaults:
  113. _entity_form: 'node_type.edit'
  114. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  115. requirements:
  116. _permission: 'administer content types'
  117. entity.node_type.delete_form:
  118. path: '/admin/structure/types/manage/{node_type}/delete'
  119. defaults:
  120. _entity_form: 'node_type.delete'
  121. _title: 'Delete'
  122. requirements:
  123. _entity_access: 'node_type.delete'
  124. node.configure_rebuild_confirm:
  125. path: '/admin/reports/status/rebuild'
  126. defaults:
  127. _form: '\Drupal\node\Form\RebuildPermissionsForm'
  128. requirements:
  129. _permission: 'access administration pages'