function 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.
3 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.
File
-
core/
modules/ views/ src/ Plugin/ views/ access/ AccessPluginBase.php, line 75
Class
- AccessPluginBase
- The base plugin to handle access control.
Namespace
Drupal\views\Plugin\views\accessCode
public abstract function alterRouteDefinition(Route $route);