node_access_test_auto_bubbling.routing.yml
Same filename in other branches
- 9 core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml
- 8.9.x core/modules/node/tests/node_access_test_auto_bubbling/node_access_test_auto_bubbling.routing.yml
- 10 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
- node_access_test_auto_bubbling:
- path: '/node_access_test_auto_bubbling'
- defaults:
- _controller: '\Drupal\node_access_test_auto_bubbling\Controller\NodeAccessTestAutoBubblingController::latest'
- requirements:
- _access: 'TRUE'
- node_access_test_auto_bubbling.node_access:
- path: '/node_access_test_auto_bubbling_node_access/{node}'
- defaults:
- _controller: '\Drupal\node_access_test_auto_bubbling\Controller\NodeAccessTestAutoBubblingController::nodeAccessCacheability'
- requirements:
- # Access checking intentionally happens in the controller instead of here.
- _access: 'TRUE'
- node: \d+
- options:
- parameters:
- node:
- type: entity:node
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.