class DomainPathServiceProvider in Domain Path 8
Overrides the path_alias.manager service. Wrap it with our DomainPathAliasManager.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\domain_path\DomainPathServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of DomainPathServiceProvider
File
- src/
DomainPathServiceProvider.php, line 13
Namespace
Drupal\domain_pathView source
class DomainPathServiceProvider extends ServiceProviderBase implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('path_alias.manager');
$definition
->setClass('Drupal\\domain_path\\DomainPathAliasManager');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DomainPathServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |