abstract public 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.

4 methods override AccessPluginBase::alterRouteDefinition()
None::alterRouteDefinition in drupal/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php
Allows access plugins to alter the route definition of a view.
Permission::alterRouteDefinition in drupal/core/modules/user/lib/Drupal/user/Plugin/views/access/Permission.php
Allows access plugins to alter the route definition of a view.
Role::alterRouteDefinition in drupal/core/modules/user/lib/Drupal/user/Plugin/views/access/Role.php
Allows access plugins to alter the route definition of a view.
StaticTest::alterRouteDefinition in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/access/StaticTest.php
Allows access plugins to alter the route definition of a view.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php, line 78
Definition of Drupal\views\Plugin\views\access\AccessPluginBase.

Class

AccessPluginBase
The base plugin to handle access control.

Namespace

Drupal\views\Plugin\views\access

Code

public abstract function alterRouteDefinition(Route $route);