public function LanguageHierarchyServiceProvider::alter in Language Hierarchy 8
Same name and namespace in other branches
- 2.x src/LanguageHierarchyServiceProvider.php \Drupal\language_hierarchy\LanguageHierarchyServiceProvider::alter()
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceProviderBase::alter
File
- src/
LanguageHierarchyServiceProvider.php, line 16
Class
- LanguageHierarchyServiceProvider
- Overrides the language overrides config factory service to use fallbacks.
Namespace
Drupal\language_hierarchyCode
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('language.config_factory_override');
$definition
->setClass('Drupal\\language_hierarchy\\Config\\LanguageHierarchyConfigFactoryOverride');
}