You are here

class ConfigExportIgnoreServiceProvider in Config Export Ignore 8

Modifies the config split service to prevent exporting specified items.

Hierarchy

Expanded class hierarchy of ConfigExportIgnoreServiceProvider

File

src/ConfigExportIgnoreServiceProvider.php, line 11

Namespace

Drupal\config_export_ignore
View source
class ConfigExportIgnoreServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  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');
  }

}

Members

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