node_access_test_auto_bubbling.routing.yml

Same filename in other branches
  1. 9 core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml
  2. 8.9.x core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml
  3. 10 core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml
core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml
1 string reference to YAML keys in node_access_test_auto_bubbling.routing.yml
NodeAccessCacheabilityTest::testNodeAccessCacheabilitySafeguard in core/modules/node/tests/src/Functional/NodeAccessCacheabilityTest.php
Tests that the node grants cache context is auto-added, only when needed.

File

core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml

View source
  1. node_access_test_auto_bubbling:
  2. path: '/node_access_test_auto_bubbling'
  3. defaults:
  4. _controller: '\Drupal\node_access_test_auto_bubbling\Controller\NodeAccessTestAutoBubblingController::latest'
  5. requirements:
  6. _access: 'TRUE'
  7. node_access_test_auto_bubbling.node_access:
  8. path: '/node_access_test_auto_bubbling_node_access/{node}'
  9. defaults:
  10. _controller: '\Drupal\node_access_test_auto_bubbling\Controller\NodeAccessTestAutoBubblingController::nodeAccessCacheability'
  11. requirements:
  12. # Access checking intentionally happens in the controller instead of here.
  13. _access: 'TRUE'
  14. node: \d+
  15. options:
  16. parameters:
  17. node:
  18. type: entity:node

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