public function MailchimpConfigOverrider::loadOverrides in Mailchimp 8
Same name and namespace in other branches
- 2.x tests/modules/mailchimp_test/src/MailchimpConfigOverrider.php \Drupal\mailchimp_test\MailchimpConfigOverrider::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
2 calls to MailchimpConfigOverrider::loadOverrides()
- MailchimpCampaignConfigOverrider::loadOverrides in modules/
mailchimp_campaign/ tests/ modules/ mailchimp_campaign_test/ src/ MailchimpCampaignConfigOverrider.php - Returns config overrides.
- MailchimpListsConfigOverrider::loadOverrides in modules/
mailchimp_lists/ tests/ modules/ mailchimp_lists_test/ src/ MailchimpListsConfigOverrider.php - Returns config overrides.
2 methods override MailchimpConfigOverrider::loadOverrides()
- MailchimpCampaignConfigOverrider::loadOverrides in modules/
mailchimp_campaign/ tests/ modules/ mailchimp_campaign_test/ src/ MailchimpCampaignConfigOverrider.php - Returns config overrides.
- MailchimpListsConfigOverrider::loadOverrides in modules/
mailchimp_lists/ tests/ modules/ mailchimp_lists_test/ src/ MailchimpListsConfigOverrider.php - Returns config overrides.
File
- tests/
modules/ mailchimp_test/ src/ MailchimpConfigOverrider.php, line 20
Class
- MailchimpConfigOverrider
- Tests module overrides for configuration.
Namespace
Drupal\mailchimp_testCode
public function loadOverrides($names) {
$overrides = [
'mailchimp.settings' => [
'api_key' => 'MAILCHIMP_TEST_API_KEY',
'cron' => FALSE,
'batch_limit' => 100,
'test_mode' => TRUE,
],
];
return $overrides;
}