public function ConfigExportIgnoreServiceProvider::alter in Config Export Ignore 8
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceProviderBase::alter
File
- src/
ConfigExportIgnoreServiceProvider.php, line 16
Class
- ConfigExportIgnoreServiceProvider
- Modifies the config split service to prevent exporting specified items.
Namespace
Drupal\config_export_ignoreCode
public function alter(ContainerBuilder $container) {
// Overrides ConfigSplitService class to test domain language negotiation.
$definition = $container
->getDefinition('config_split.cli');
$definition
->setClass('Drupal\\config_export_ignore\\ConfigExportIgnoreConfigSplitService');
}