LanguageHierarchyServiceProvider.php in Language Hierarchy 8
Same filename and directory in other branches
Namespace
Drupal\language_hierarchyFile
src/LanguageHierarchyServiceProvider.phpView 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
Name | Description |
---|---|
LanguageHierarchyServiceProvider | Overrides the language overrides config factory service to use fallbacks. |