You are here

LanguageHierarchyServiceProvider.php in Language Hierarchy 8

Same filename and directory in other branches
  1. 2.x src/LanguageHierarchyServiceProvider.php

File

src/LanguageHierarchyServiceProvider.php
View source
<?php

namespace Drupal\language_hierarchy;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;

/**
 * Overrides the language overrides config factory service to use fallbacks.
 */
class LanguageHierarchyServiceProvider extends ServiceProviderBase {

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

}

Classes

Namesort descending Description
LanguageHierarchyServiceProvider Overrides the language overrides config factory service to use fallbacks.