class MailchimpConfigOverrider in Mailchimp 8
Same name and namespace in other branches
- 2.x tests/modules/mailchimp_test/src/MailchimpConfigOverrider.php \Drupal\mailchimp_test\MailchimpConfigOverrider
Tests module overrides for configuration.
Hierarchy
- class \Drupal\Core\Config\ConfigFactoryOverrideBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\mailchimp_test\MailchimpConfigOverrider implements ConfigFactoryOverrideInterface
Expanded class hierarchy of MailchimpConfigOverrider
3 files declare their use of MailchimpConfigOverrider
- FunctionalMailchimpTestBase.php in tests/
src/ Functional/ FunctionalMailchimpTestBase.php - MailchimpCampaignConfigOverrider.php in modules/
mailchimp_campaign/ tests/ modules/ mailchimp_campaign_test/ src/ MailchimpCampaignConfigOverrider.php - MailchimpListsConfigOverrider.php in modules/
mailchimp_lists/ tests/ modules/ mailchimp_lists_test/ src/ MailchimpListsConfigOverrider.php
File
- tests/
modules/ mailchimp_test/ src/ MailchimpConfigOverrider.php, line 15
Namespace
Drupal\mailchimp_testView source
class MailchimpConfigOverrider extends ConfigFactoryOverrideBase implements ConfigFactoryOverrideInterface {
/**
* {@inheritdoc}
*/
public function loadOverrides($names) {
$overrides = [
'mailchimp.settings' => [
'api_key' => 'MAILCHIMP_TEST_API_KEY',
'cron' => FALSE,
'batch_limit' => 100,
'test_mode' => TRUE,
],
];
return $overrides;
}
/**
* {@inheritdoc}
*/
public function getCacheSuffix() {
return 'mailchimp_test_cache';
}
/**
* {@inheritdoc}
*/
public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
return NULL;
}
/**
* {@inheritdoc}
*/
public function getCacheableMetadata($name) {
// Not required for test case config.
return NULL;
}
/**
* {@inheritdoc}
*/
public function addCollections(ConfigCollectionInfo $collection_info) {
// Not required for test case config.
}
/**
* {@inheritdoc}
*/
public function onConfigDelete(ConfigCrudEvent $event) {
// Not required for test case config.
}
/**
* {@inheritdoc}
*/
public function onConfigRename(ConfigRenameEvent $event) {
// Not required for test case config.
}
/**
* {@inheritdoc}
*/
public function onConfigSave(ConfigCrudEvent $event) {
// Not required for test case config.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigFactoryOverrideBase:: |
protected | function | Filters data in nested arrays. | |
ConfigFactoryOverrideBase:: |
protected | function | Filters data in the override based on what is currently in configuration. | |
ConfigFactoryOverrideBase:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | |
MailchimpConfigOverrider:: |
public | function |
Reacts to the ConfigEvents::COLLECTION_INFO event. Overrides ConfigFactoryOverrideBase:: |
|
MailchimpConfigOverrider:: |
public | function |
Creates a configuration object for use during install and synchronization. Overrides ConfigFactoryOverrideInterface:: |
|
MailchimpConfigOverrider:: |
public | function |
Gets the cacheability metadata associated with the config factory override. Overrides ConfigFactoryOverrideInterface:: |
|
MailchimpConfigOverrider:: |
public | function |
The string to append to the configuration static cache name. Overrides ConfigFactoryOverrideInterface:: |
|
MailchimpConfigOverrider:: |
public | function |
Returns config overrides. Overrides ConfigFactoryOverrideInterface:: |
2 |
MailchimpConfigOverrider:: |
public | function |
Actions to be performed to configuration override on configuration delete. Overrides ConfigFactoryOverrideBase:: |
|
MailchimpConfigOverrider:: |
public | function |
Actions to be performed to configuration override on configuration rename. Overrides ConfigFactoryOverrideBase:: |
|
MailchimpConfigOverrider:: |
public | function |
Actions to be performed to configuration override on configuration save. Overrides ConfigFactoryOverrideBase:: |