class ConfigImportLocaleServiceProvider in Locale: Config import 8
Modifies the locale.config_subscriber service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\config_import_locale\ConfigImportLocaleServiceProvider
Expanded class hierarchy of ConfigImportLocaleServiceProvider
File
- src/
ConfigImportLocaleServiceProvider.php, line 11
Namespace
Drupal\config_import_localeView source
class ConfigImportLocaleServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Changes the class for the locale.config_subscriber to our own class.
$definition = $container
->getDefinition('locale.config_subscriber');
$definition
->setClass('Drupal\\config_import_locale\\ConfigImportLocaleSubscriber');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigImportLocaleServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |