abstract public function AccessPluginBase::alterRouteDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/access/AccessPluginBase.php \Drupal\views\Plugin\views\access\AccessPluginBase::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.
4 methods override AccessPluginBase::alterRouteDefinition()
- None::alterRouteDefinition in core/
modules/ views/ src/ Plugin/ views/ access/ None.php - Allows access plugins to alter the route definition of a view.
- Permission::alterRouteDefinition in core/
modules/ user/ src/ Plugin/ views/ access/ Permission.php - Allows access plugins to alter the route definition of a view.
- Role::alterRouteDefinition in core/
modules/ user/ src/ Plugin/ views/ access/ Role.php - Allows access plugins to alter the route definition of a view.
- StaticTest::alterRouteDefinition in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ access/ StaticTest.php - Allows access plugins to alter the route definition of a view.
File
- core/
modules/ views/ src/ Plugin/ views/ access/ AccessPluginBase.php, line 80 - Contains \Drupal\views\Plugin\views\access\AccessPluginBase.
Class
- AccessPluginBase
- The base plugin to handle access control.
Namespace
Drupal\views\Plugin\views\accessCode
public abstract function alterRouteDefinition(Route $route);