public function None::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.

Overrides AccessPluginBase::alterRouteDefinition

File

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

Class

None
Access plugin that provides no access control at all.

Namespace

Drupal\views\Plugin\views\access

Code

public function alterRouteDefinition(Route $route) {
  $route
    ->setRequirement('_access', 'TRUE');
}