You are here

protected function TwigExtensionBase::getMenuLinkTree in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.2 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getMenuLinkTree()
  2. 8.3 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getMenuLinkTree()
  3. 8.4 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getMenuLinkTree()

Interface for loading, transforming and rendering menu link trees.

Return value

\Drupal\Core\Menu\MenuLinkTreeInterface Return the interface for loading, transforming and rendering menu link.

1 call to TwigExtensionBase::getMenuLinkTree()
Render::renderMenu in bamboo_twig_loader/src/TwigExtension/Render.php
Returns the render array for Drupal menu.

File

src/TwigExtension/TwigExtensionBase.php, line 77

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getMenuLinkTree() {
  return $this->container
    ->get('menu.link_tree');
}