node.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/node/node.routing.yml
  2. 10 core/modules/node/node.routing.yml
  3. 11.x core/modules/node/node.routing.yml
core/modules/node/node.routing.yml
38 string references to YAML keys in node.routing.yml
BookLocalTasksTest::testBookNodeLocalTasks in core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php
Tests local task existence.
book_node_links_alter in core/modules/book/book.module
Implements hook_node_links_alter().
CKEditor5DialogTestController::testDialog in core/modules/ckeditor5/tests/modules/ckeditor5_test/src/Controller/CKEditor5DialogTestController.php
Returns a link that can open a node add form in an modal dialog.
CKEditor5OffCanvasTestController::testOffCanvas in core/modules/ckeditor5/tests/modules/ckeditor5_test/src/Controller/CKEditor5OffCanvasTestController.php
Returns a link that can open a node add form in an off-canvas dialog.
CkeditorOffCanvasTestController::testOffCanvas in core/modules/ckeditor/tests/modules/src/CkeditorOffCanvasTestController.php
Returns a link that can open a node add form in an off-canvas dialog.

... See full list

File

core/modules/node/node.routing.yml

View source
  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. _entity_create_any_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. _entity_create_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. _entity_access: 'node.view all revisions'
  55. node: \d+
  56. options:
  57. _node_operation_route: TRUE
  58. parameters:
  59. node:
  60. type: entity:node
  61. entity.node.revision:
  62. path: '/node/{node}/revisions/{node_revision}/view'
  63. defaults:
  64. _controller: '\Drupal\node\Controller\NodeController::revisionShow'
  65. _title_callback: '\Drupal\node\Controller\NodeController::revisionPageTitle'
  66. requirements:
  67. _entity_access: 'node_revision.view revision'
  68. node: \d+
  69. options:
  70. parameters:
  71. node:
  72. type: entity:node
  73. node_revision:
  74. type: entity_revision:node
  75. node.revision_revert_confirm:
  76. path: '/node/{node}/revisions/{node_revision}/revert'
  77. defaults:
  78. _form: '\Drupal\node\Form\NodeRevisionRevertForm'
  79. _title: 'Revert to earlier revision'
  80. requirements:
  81. _entity_access: 'node_revision.revert revision'
  82. node: \d+
  83. options:
  84. _node_operation_route: TRUE
  85. parameters:
  86. node:
  87. type: entity:node
  88. node_revision:
  89. type: entity_revision:node
  90. node.revision_revert_translation_confirm:
  91. path: '/node/{node}/revisions/{node_revision}/revert/{langcode}'
  92. defaults:
  93. _form: '\Drupal\node\Form\NodeRevisionRevertTranslationForm'
  94. _title: 'Revert to earlier revision of a translation'
  95. requirements:
  96. _entity_access: 'node_revision.revert revision'
  97. node: \d+
  98. options:
  99. _node_operation_route: TRUE
  100. parameters:
  101. node:
  102. type: entity:node
  103. node_revision:
  104. type: entity_revision:node
  105. node.revision_delete_confirm:
  106. path: '/node/{node}/revisions/{node_revision}/delete'
  107. defaults:
  108. _form: '\Drupal\node\Form\NodeRevisionDeleteForm'
  109. _title: 'Delete earlier revision'
  110. requirements:
  111. _entity_access: 'node_revision.delete revision'
  112. node: \d+
  113. options:
  114. _node_operation_route: TRUE
  115. parameters:
  116. node:
  117. type: entity:node
  118. node_revision:
  119. type: entity_revision:node
  120. entity.node_type.collection:
  121. path: '/admin/structure/types'
  122. defaults:
  123. _entity_list: 'node_type'
  124. _title: 'Content types'
  125. requirements:
  126. _permission: 'administer content types'
  127. node.type_add:
  128. path: '/admin/structure/types/add'
  129. defaults:
  130. _entity_form: 'node_type.add'
  131. _title: 'Add content type'
  132. requirements:
  133. _permission: 'administer content types'
  134. entity.node_type.edit_form:
  135. path: '/admin/structure/types/manage/{node_type}'
  136. defaults:
  137. _entity_form: 'node_type.edit'
  138. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  139. requirements:
  140. _permission: 'administer content types'
  141. entity.node_type.delete_form:
  142. path: '/admin/structure/types/manage/{node_type}/delete'
  143. defaults:
  144. _entity_form: 'node_type.delete'
  145. _title: 'Delete'
  146. requirements:
  147. _entity_access: 'node_type.delete'
  148. node.configure_rebuild_confirm:
  149. path: '/admin/reports/status/rebuild'
  150. defaults:
  151. _form: '\Drupal\node\Form\RebuildPermissionsForm'
  152. requirements:
  153. _permission: 'access administration pages'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.