You are here

public function SocialEventEnrolmentsExportOverrides::loadOverrides in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  2. 8.5 modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  3. 8.6 modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  4. 8.7 modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  5. 10.3.x modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  6. 10.0.x modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  7. 10.1.x modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()
  8. 10.2.x modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php \Drupal\social_event_enrolments_export\SocialEventEnrolmentsExportOverrides::loadOverrides()

Returns config overrides.

Parameters

array $names: A list of configuration names that are being loaded.

Return value

array An array keyed by configuration name of override data. Override data contains a nested array structure of overrides.

Overrides ConfigFactoryOverrideInterface::loadOverrides

File

modules/social_features/social_event/modules/social_event_enrolments_export/src/SocialEventEnrolmentsExportOverrides.php, line 17

Class

SocialEventEnrolmentsExportOverrides
Configuration override.

Namespace

Drupal\social_event_enrolments_export

Code

public function loadOverrides($names) {
  $overrides = [];
  $config_name = 'views.view.event_manage_enrollments';
  if (in_array($config_name, $names)) {
    $overrides[$config_name] = [
      'display' => [
        'default' => [
          'display_options' => [
            'fields' => [
              'social_views_bulk_operations_bulk_form_enrollments_1' => [
                'selected_actions' => [
                  'social_event_enrolments_export_enrollments_action' => 'social_event_enrolments_export_enrollments_action',
                ],
                'preconfiguration' => [
                  'social_event_enrolments_export_enrollments_action' => [
                    'label_override' => 'Export',
                  ],
                ],
              ],
            ],
          ],
        ],
      ],
    ];
  }
  return $overrides;
}