Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccessPluginBase.php

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\access

Code

public abstract function alterRouteDefinition(Route $route);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal