early_rendering_controller_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/early_rendering_controller_test/early_rendering_controller_test.routing.yml
  2. 10 core/modules/system/tests/modules/early_rendering_controller_test/early_rendering_controller_test.routing.yml
  3. 11.x core/modules/system/tests/modules/early_rendering_controller_test/early_rendering_controller_test.routing.yml
core/modules/system/tests/modules/early_rendering_controller_test/early_rendering_controller_test.routing.yml
1 string reference to YAML keys in early_rendering_controller_test.routing.yml
EarlyRenderingControllerTest::testEarlyRendering in core/modules/system/tests/src/Functional/Common/EarlyRenderingControllerTest.php
Tests theme preprocess functions being able to attach assets.

File

core/modules/system/tests/modules/early_rendering_controller_test/early_rendering_controller_test.routing.yml

View source
  1. # Controller returning a render array.
  2. early_rendering_controller_test.render_array:
  3. path: '/early-rendering-controller-test/render-array'
  4. defaults:
  5. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::renderArray'
  6. requirements:
  7. _access: 'TRUE'
  8. early_rendering_controller_test.render_array.early:
  9. path: '/early-rendering-controller-test/render-array/early'
  10. defaults:
  11. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::renderArrayEarly'
  12. requirements:
  13. _access: 'TRUE'
  14. # Controller returning an AjaxResponse.
  15. early_rendering_controller_test.ajax_response:
  16. path: '/early-rendering-controller-test/ajax-response'
  17. defaults:
  18. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::ajaxResponse'
  19. requirements:
  20. _access: 'TRUE'
  21. early_rendering_controller_test.ajax_response.early:
  22. path: '/early-rendering-controller-test/ajax-response/early'
  23. defaults:
  24. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::ajaxResponseEarly'
  25. requirements:
  26. _access: 'TRUE'
  27. # Controller returning a basic Response object.
  28. early_rendering_controller_test.response:
  29. path: '/early-rendering-controller-test/response'
  30. defaults:
  31. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::response'
  32. requirements:
  33. _access: 'TRUE'
  34. early_rendering_controller_test.response.early:
  35. path: '/early-rendering-controller-test/response/early'
  36. defaults:
  37. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::responseEarly'
  38. requirements:
  39. _access: 'TRUE'
  40. # Controller returning a Response object with attachments.
  41. early_rendering_controller_test.response-with-attachments:
  42. path: '/early-rendering-controller-test/response-with-attachments'
  43. defaults:
  44. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::responseWithAttachments'
  45. requirements:
  46. _access: 'TRUE'
  47. early_rendering_controller_test.response-with-attachments.early:
  48. path: '/early-rendering-controller-test/response-with-attachments/early'
  49. defaults:
  50. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::responseWithAttachmentsEarly'
  51. requirements:
  52. _access: 'TRUE'
  53. # Controller returning a cacheable Response object.
  54. early_rendering_controller_test.cacheable-response:
  55. path: '/early-rendering-controller-test/cacheable-response'
  56. defaults:
  57. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::cacheableResponse'
  58. requirements:
  59. _access: 'TRUE'
  60. early_rendering_controller_test.cacheable-response.early:
  61. path: '/early-rendering-controller-test/cacheable-response/early'
  62. defaults:
  63. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::cacheableResponseEarly'
  64. requirements:
  65. _access: 'TRUE'
  66. # Controller returning a basic domain object.
  67. early_rendering_controller_test.domain-object:
  68. path: '/early-rendering-controller-test/domain-object'
  69. defaults:
  70. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::domainObject'
  71. requirements:
  72. _access: 'TRUE'
  73. early_rendering_controller_test.domain-object.early:
  74. path: '/early-rendering-controller-test/domain-object/early'
  75. defaults:
  76. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::domainObjectEarly'
  77. requirements:
  78. _access: 'TRUE'
  79. # Controller returning a domain object with attachments.
  80. early_rendering_controller_test.domain-object-with-attachments:
  81. path: '/early-rendering-controller-test/domain-object-with-attachments'
  82. defaults:
  83. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::domainObjectWithAttachments'
  84. requirements:
  85. _access: 'TRUE'
  86. early_rendering_controller_test.domain-object-with-attachments.early:
  87. path: '/early-rendering-controller-test/domain-object-with-attachments/early'
  88. defaults:
  89. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::domainObjectWithAttachmentsEarly'
  90. requirements:
  91. _access: 'TRUE'
  92. # Controller returning a cacheable domain object.
  93. early_rendering_controller_test.cacheable-domain-object:
  94. path: '/early-rendering-controller-test/cacheable-domain-object'
  95. defaults:
  96. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::cacheableDomainObject'
  97. requirements:
  98. _access: 'TRUE'
  99. early_rendering_controller_test.cacheable-domain-object.early:
  100. path: '/early-rendering-controller-test/cacheable-domain-object/early'
  101. defaults:
  102. _controller: '\Drupal\early_rendering_controller_test\EarlyRenderingTestController::cacheableDomainObjectEarly'
  103. requirements:
  104. _access: 'TRUE'

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