public function SocialGroupAdminPeopleConfigOverride::loadOverrides in Open Social 8.9
Same name and namespace in other branches
- 8.5 modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 8.6 modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 8.7 modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 8.8 modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 10.3.x modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 10.0.x modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 10.1.x modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
- 10.2.x modules/social_features/social_group/src/SocialGroupAdminPeopleConfigOverride.php \Drupal\social_group\SocialGroupAdminPeopleConfigOverride::loadOverrides()
Load overrides.
Overrides ConfigFactoryOverrideInterface::loadOverrides
File
- modules/
social_features/ social_group/ src/ SocialGroupAdminPeopleConfigOverride.php, line 37
Class
- SocialGroupAdminPeopleConfigOverride
- Class SocialGroupAdminPeopleConfigOverride.
Namespace
Drupal\social_groupCode
public function loadOverrides($names) {
$overrides = [];
$config_name = 'views.view.user_admin_people';
// Add AddMembersToGroup to VBO Admin people.
if (in_array($config_name, $names, TRUE)) {
$overrides[$config_name] = [
'display' => [
'default' => [
'display_options' => [
'fields' => [
'views_bulk_operations_bulk_form' => [
'selected_actions' => [
'social_group_add_members_to_group_action' => 'social_group_add_members_to_group_action',
],
],
],
],
],
],
];
}
$config_name = 'views.view.group_manage_members';
// Add all available group types on the platform here, so they can all
// make use of the new manage members overview.
if (in_array($config_name, $names, TRUE)) {
$social_group_types = [
'open_group',
'closed_group',
'public_group',
];
$this->moduleHandler
->alter('social_group_types', $social_group_types);
// Loop over all group types.
foreach ($social_group_types as $group_type) {
$membership = $group_type . '-group_membership';
// Add each group type to the filters of this overview.
$overrides[$config_name]['display']['default']['display_options']['filters']['type']['value'][$membership] = $membership;
}
}
return $overrides;
}