node.routing.yml 3.6 KB

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