You are here

class SocialGroupViewsBulkOperationsAccess in Open Social 10.1.x

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
  2. 8.5 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
  3. 8.6 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
  4. 8.7 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
  5. 8.8 modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
  6. 10.3.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
  7. 10.0.x modules/social_features/social_group/modules/social_group_gvbo/src/Access/SocialGroupViewsBulkOperationsAccess.php \Drupal\social_group_gvbo\Access\SocialGroupViewsBulkOperationsAccess
  8. 10.2.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

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\Access
View 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

Namesort descending Modifiers Type Description Overrides
SocialGroupViewsBulkOperationsAccess::access public function A custom access check. Overrides ViewsBulkOperationsAccess::access
ViewsBulkOperationsAccess::$tempStoreFactory protected property The tempstore service.
ViewsBulkOperationsAccess::__construct public function Object constructor.