function None::alterRouteDefinition
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/access/None.php \Drupal\views\Plugin\views\access\None::alterRouteDefinition()
- 10 core/modules/views/src/Plugin/views/access/None.php \Drupal\views\Plugin\views\access\None::alterRouteDefinition()
- 11.x core/modules/views/src/Plugin/views/access/None.php \Drupal\views\Plugin\views\access\None::alterRouteDefinition()
Overrides AccessPluginBase::alterRouteDefinition
File
-
core/
modules/ views/ src/ Plugin/ views/ access/ None.php, line 39
Class
- None
- Access plugin that provides no access control at all.
Namespace
Drupal\views\Plugin\views\accessCode
public function alterRouteDefinition(Route $route) {
$route->setRequirement('_access', 'TRUE');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.