class SocialGroupViewsBulkOperationsAccess in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 8.5 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 8.6 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 8.7 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 8.8 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 10.3.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 10.0.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
- 10.1.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
Defines VBO module access rules.
Hierarchy
- class \Drupal\views_bulk_operations\Access\ViewsBulkOperationsAccess implements AccessInterface
- class \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
Expanded class hierarchy of SocialGroupViewsBulkOperationsAccess
1 string reference to 'SocialGroupViewsBulkOperationsAccess'
- social_group_gvbo.services.yml in modules/
social_features/ social_group/ modules/ social_group_gvbo/ social_group_gvbo.services.yml - modules/social_features/social_group/modules/social_group_gvbo/social_group_gvbo.services.yml
1 service uses SocialGroupViewsBulkOperationsAccess
- social_group_gvbo.views_bulk_operations.access in modules/
social_features/ social_group/ modules/ social_group_gvbo/ social_group_gvbo.services.yml - Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
File
- modules/
social_features/ social_group/ modules/ social_group_gvbo/ src/ Access/ SocialGroupViewsBulkOperationsAccess.php, line 12
Namespace
Drupal\social_group_gvbo\AccessView source
class SocialGroupViewsBulkOperationsAccess extends ViewsBulkOperationsAccess {
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account, RouteMatch $routeMatch) {
$parameters = [
'view_id' => 'group_manage_members',
'display_id' => 'page_group_manage_members',
];
$route = $routeMatch
->getRouteObject();
foreach ($parameters as $key => $value) {
$route
->setDefault($key, $value);
}
$parameters = $parameters + $routeMatch
->getParameters()
->all();
$routeMatch = new RouteMatch($routeMatch
->getRouteName(), $route, $parameters, $parameters);
return parent::access($account, $routeMatch);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SocialGroupViewsBulkOperationsAccess:: |
public | function |
A custom access check. Overrides ViewsBulkOperationsAccess:: |
|
ViewsBulkOperationsAccess:: |
protected | property | The tempstore service. | |
ViewsBulkOperationsAccess:: |
public | function | Object constructor. |