You are here

class LanguageHierarchyServiceProvider in Language Hierarchy 8

Same name and namespace in other branches
  1. 2.x src/LanguageHierarchyServiceProvider.php \Drupal\language_hierarchy\LanguageHierarchyServiceProvider

Overrides the language overrides config factory service to use fallbacks.

Hierarchy

Expanded class hierarchy of LanguageHierarchyServiceProvider

File

src/LanguageHierarchyServiceProvider.php, line 11

Namespace

Drupal\language_hierarchy
View source
class LanguageHierarchyServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('language.config_factory_override');
    $definition
      ->setClass('Drupal\\language_hierarchy\\Config\\LanguageHierarchyConfigFactoryOverride');
  }

}

Members

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