You are here

class SiteMapServiceProvider in Site map 8

ServiceProvider class for site_map module.

Hierarchy

Expanded class hierarchy of SiteMapServiceProvider

File

src/SiteMapServiceProvider.php, line 11

Namespace

Drupal\site_map
View 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

Namesort descending Modifiers Type Description Overrides
SiteMapServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter