public function CacheableMetadataCalculationTest::alterRouteDefinition in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php \Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access\CacheableMetadataCalculationTest::alterRouteDefinition()
Allows access plugins to alter the route definition of a view.
Likely the access plugin will add new requirements, so its custom access checker can be applied.
Parameters
\Symfony\Component\Routing\Route $route: The route to change.
Overrides AccessPluginBase::alterRouteDefinition
File
- core/
modules/ views/ tests/ modules/ views_test_cacheable_metadata_calculation/ src/ Plugin/ views/ access/ CacheableMetadataCalculationTest.php, line 70
Class
- CacheableMetadataCalculationTest
- Tests plugin that reports when cacheable metadata is being calculated.
Namespace
Drupal\views_test_cacheable_metadata_calculation\Plugin\views\accessCode
public function alterRouteDefinition(Route $route) {
}