class SiteMapServiceProvider in Site map 8
ServiceProvider class for site_map module.
Hierarchy
- class \Drupal\site_map\SiteMapServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of SiteMapServiceProvider
File
- src/
SiteMapServiceProvider.php, line 11
Namespace
Drupal\site_mapView source
class SiteMapServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Change class of menu.link_tree service.
$definition = $container
->getDefinition('menu.link_tree');
$definition
->setClass('Drupal\\site_map\\Menu\\MenuLinkTree');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SiteMapServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |