node.routing.yml

Same filename in other branches
  1. 9 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
34 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().
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.
claro_preprocess_node_add_list in core/themes/claro/claro.theme
Implements template_preprocess_HOOK() for node_add_list.
ContentTranslationLocalTasksTest::providerTestBlockAdminDisplay in core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php
Provides a list of routes to test.

... 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. _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'

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