protected function TwigExtensionBase::getMenuLinkTree in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getMenuLinkTree()
- 8.2 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getMenuLinkTree()
- 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 67
Class
- TwigExtensionBase
- Provides a Twig Extension Lazy Service Injection.
Namespace
Drupal\bamboo_twig\TwigExtensionCode
protected function getMenuLinkTree() {
return $this->container
->get('menu.link_tree');
}