You are here

class ConfigImportLocaleServiceProvider in Locale: Config import 8

Modifies the locale.config_subscriber service.

Hierarchy

Expanded class hierarchy of ConfigImportLocaleServiceProvider

File

src/ConfigImportLocaleServiceProvider.php, line 11

Namespace

Drupal\config_import_locale
View 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

Namesort descending Modifiers Type Description Overrides
ConfigImportLocaleServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1