You are here

public function SocialGroupViewsBulkOperationsAccess::access in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  2. 8.5 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  3. 8.7 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  4. 8.8 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  5. 10.3.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  6. 10.0.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  7. 10.1.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()
  8. 10.2.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess::access()

File

modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php, line 17

Class

SocialGroupViewsBulkOperationsAccess
Defines VBO module access rules.

Namespace

Drupal\social_group_gvbo\Access

Code

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);
}