You are here

class SocialUserExportOverrides in Open Social 8.3

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  2. 8 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  3. 8.2 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  4. 8.4 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  5. 8.5 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  6. 8.6 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  7. 8.7 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  8. 8.8 modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  9. 10.3.x modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  10. 10.0.x modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  11. 10.1.x modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides
  12. 10.2.x modules/social_features/social_user_export/src/SocialUserExportOverrides.php \Drupal\social_user_export\SocialUserExportOverrides

Configuration override.

Hierarchy

Expanded class hierarchy of SocialUserExportOverrides

2 string references to 'SocialUserExportOverrides'
SocialUserExportOverrides::getCacheSuffix in modules/social_features/social_user_export/src/SocialUserExportOverrides.php
The string to append to the configuration static cache name.
social_user_export.services.yml in modules/social_features/social_user_export/social_user_export.services.yml
modules/social_features/social_user_export/social_user_export.services.yml
1 service uses SocialUserExportOverrides
social_user_export.overrider in modules/social_features/social_user_export/social_user_export.services.yml
\Drupal\social_user_export\SocialUserExportOverrides

File

modules/social_features/social_user_export/src/SocialUserExportOverrides.php, line 12

Namespace

Drupal\social_user_export
View source
class SocialUserExportOverrides implements ConfigFactoryOverrideInterface {

  /**
   * {@inheritdoc}
   */
  public function loadOverrides($names) {
    $overrides = [];
    $config_name = 'views.view.user_admin_people';
    if (in_array($config_name, $names)) {
      $overrides[$config_name] = [
        'dependencies' => [
          'module' => [
            'group',
            'social_user_export',
            'user',
          ],
        ],
        'display' => [
          'default' => [
            'display_options' => [
              'group_by' => TRUE,
              'filters' => [
                'id' => [
                  'id' => 'id',
                  'table' => 'groups_field_data',
                  'field' => 'id',
                  'relationship' => 'gid',
                  'admin_label' => '',
                  'operator' => '=',
                  'value' => [
                    'min' => '',
                    'max' => '',
                    'value' => '',
                  ],
                  'group' => 1,
                  'exposed' => TRUE,
                  'expose' => [
                    'operator_id' => 'id_op',
                    'label' => 'Group',
                    'description' => '',
                    'use_operator' => FALSE,
                    'operator' => 'id_op',
                    'identifier' => 'group',
                    'required' => FALSE,
                    'remember' => FALSE,
                    'multiple' => FALSE,
                    'remember_roles' => [
                      'authenticated' => 'authenticated',
                      'anonymoous' => 0,
                      'administrator' => 0,
                      'contentmanager' => 0,
                      'sitemanager' => 0,
                    ],
                  ],
                  'is_grouped' => FALSE,
                  'group_info' => [
                    'label' => '',
                    'description' => '',
                    'identifier' => '',
                    'optional' => TRUE,
                    'widget' => 'select',
                    'multiple' => FALSE,
                    'remember' => FALSE,
                    'default_group' => 'All',
                    'default_group_multiple' => [],
                    'group_items' => [],
                  ],
                  'entity_type' => 'group',
                  'entity_field' => 'id',
                  'plugin_id' => 'numeric',
                ],
              ],
              'relationships' => [
                'group_content' => [
                  'id' => 'group_content',
                  'table' => 'users_field_data',
                  'field' => 'group_content',
                  'relationship' => 'none',
                  'group_type' => 'group',
                  'admin_label' => 'User group content',
                  'required' => FALSE,
                  'group_content_plugins' => [
                    'group_membership' => 'group_membership',
                  ],
                  'entity_type' => 'user',
                  'plugin_id' => 'group_content_to_entity_reverse',
                ],
                'gid' => [
                  'id' => 'gid',
                  'table' => 'group_content_field_data',
                  'field' => 'gid',
                  'relationship' => 'group_content',
                  'group_type' => 'group',
                  'admin_label' => 'Group',
                  'required' => FALSE,
                  'entity_type' => 'group_content',
                  'entity_field' => 'gid',
                  'plugin_id' => 'standard',
                ],
              ],
            ],
          ],
        ],
      ];
    }
    return $overrides;
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheSuffix() {
    return 'SocialUserExportOverrides';
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheableMetadata($name) {
    return new CacheableMetadata();
  }

  /**
   * {@inheritdoc}
   */
  public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
    return NULL;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SocialUserExportOverrides::createConfigObject public function Creates a configuration object for use during install and synchronization. Overrides ConfigFactoryOverrideInterface::createConfigObject
SocialUserExportOverrides::getCacheableMetadata public function Gets the cacheability metadata associated with the config factory override. Overrides ConfigFactoryOverrideInterface::getCacheableMetadata
SocialUserExportOverrides::getCacheSuffix public function The string to append to the configuration static cache name. Overrides ConfigFactoryOverrideInterface::getCacheSuffix
SocialUserExportOverrides::loadOverrides public function Returns config overrides. Overrides ConfigFactoryOverrideInterface::loadOverrides