class PurlServiceProvider in Persistent URL 8
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\purl\PurlServiceProvider
Expanded class hierarchy of PurlServiceProvider
File
- src/
PurlServiceProvider.php, line 16
Namespace
Drupal\purlView source
class PurlServiceProvider extends ServiceProviderBase {
public function alter(ContainerBuilder $container) {
$urlGeneratorDefinition = $container
->getDefinition('url_generator');
$urlGeneratorDefinition
->replaceArgument(0, new Reference('purl.url_generator'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PurlServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |