public function SimpleAccessViewsAccess::alterRouteDefinition in Simple Access 8.3
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
- src/
views/ access/ SimpleAccessViewsAccess.php, line 41
Class
- SimpleAccessViewsAccess
- Plugin annotation @ViewsAccess( id = "simple_access_group", title = @Translation("Simple Access Group"), help = @Translation("Will be available to all users.") )
Namespace
Drupal\simple_access\views\accessCode
public function alterRouteDefinition(Route $route) {
// TODO: Implement alterRouteDefinition() method.
}