class ContextActiveTrailServiceProvider in Context Active Trail 8.2
Same name and namespace in other branches
- 8 src/ContextActiveTrailServiceProvider.php \Drupal\context_active_trail\ContextActiveTrailServiceProvider
Overrides the class for the menu link tree.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\context_active_trail\ContextActiveTrailServiceProvider
Expanded class hierarchy of ContextActiveTrailServiceProvider
File
- src/
ContextActiveTrailServiceProvider.php, line 12
Namespace
Drupal\context_active_trailView source
class ContextActiveTrailServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('menu.active_trail');
$definition
->setClass('Drupal\\context_active_trail\\ContextActiveTrail');
$definition
->addArgument(new Reference('context.manager'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContextActiveTrailServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |