public function PeopleAccess::alterRouteDefinition in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8.2 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8.4 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8.5 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8.6 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8.7 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 8.8 modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 10.3.x modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 10.0.x modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 10.1.x modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::alterRouteDefinition()
- 10.2.x modules/social_features/social_user/src/Plugin/views/access/PeopleAccess.php \Drupal\social_user\Plugin\views\access\PeopleAccess::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
- modules/
social_features/ social_user/ src/ Plugin/ views/ access/ PeopleAccess.php, line 42
Class
- PeopleAccess
- People page access plugin that provides access control based on some perms.
Namespace
Drupal\social_user\Plugin\views\accessCode
public function alterRouteDefinition(Route $route) {
$route
->setRequirement('_custom_access', '\\Drupal\\social_user\\Controller\\SocialUserController::access');
}