class LanguageHierarchyServiceProvider in Language Hierarchy 8
Same name and namespace in other branches
- 2.x src/LanguageHierarchyServiceProvider.php \Drupal\language_hierarchy\LanguageHierarchyServiceProvider
Overrides the language overrides config factory service to use fallbacks.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\language_hierarchy\LanguageHierarchyServiceProvider
Expanded class hierarchy of LanguageHierarchyServiceProvider
File
- src/
LanguageHierarchyServiceProvider.php, line 11
Namespace
Drupal\language_hierarchyView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LanguageHierarchyServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |