SocialGroupMembersExportOverrides.php in Open Social 8.7
Same filename and directory in other branches
- 8.9 modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 8.5 modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 8.6 modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 8.8 modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 10.3.x modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 10.0.x modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 10.1.x modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
- 10.2.x modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.php
Namespace
Drupal\social_group_members_exportFile
modules/social_features/social_group/modules/social_group_members_export/src/SocialGroupMembersExportOverrides.phpView source
<?php
namespace Drupal\social_group_members_export;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\Core\Config\StorageInterface;
/**
* Configuration override.
*/
class SocialGroupMembersExportOverrides implements ConfigFactoryOverrideInterface {
/**
* {@inheritdoc}
*/
public function loadOverrides($names) {
$overrides = [];
$config_name = 'views.view.group_manage_members';
if (in_array($config_name, $names)) {
$overrides[$config_name] = [
'display' => [
'default' => [
'display_options' => [
'fields' => [
'social_views_bulk_operations_bulk_form_group' => [
'selected_actions' => [
'social_group_members_export_member_action' => 'social_group_members_export_member_action',
],
'preconfiguration' => [
'social_group_members_export_member_action' => [
'label_override' => 'Export',
],
],
],
],
],
],
],
];
}
return $overrides;
}
/**
* {@inheritdoc}
*/
public function getCacheSuffix() {
return 'SocialGroupMembersExportOverrides';
}
/**
* {@inheritdoc}
*/
public function getCacheableMetadata($name) {
return new CacheableMetadata();
}
/**
* {@inheritdoc}
*/
public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
return NULL;
}
}
Classes
Name | Description |
---|---|
SocialGroupMembersExportOverrides | Configuration override. |