class LanguageNeutralAliasesServiceProvider in Language neutral aliases 8
Modifies the path alias storage service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\language_neutral_aliases\LanguageNeutralAliasesServiceProvider
Expanded class hierarchy of LanguageNeutralAliasesServiceProvider
File
- src/
LanguageNeutralAliasesServiceProvider.php, line 11
Namespace
Drupal\language_neutral_aliasesView source
class LanguageNeutralAliasesServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Overrides path.alias_storage class to store aliases language neutral.
$definition = $container
->getDefinition('path.alias_storage');
$definition
->setClass('Drupal\\language_neutral_aliases\\LanguageNeutralAliasesStorage');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LanguageNeutralAliasesServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |