Guides

GlobalMenuExtension extends AbstractExtension
in package

FinalYes

Table of Contents

Properties

$menuCache  : array<string, string>
Contains cached menu html for each render context to prevent multiple rendering of the same menu.
$nodeRenderer  : NodeRenderer

Methods

__construct()  : mixed
getFunctions()  : array<string|int, TwigFunction>
renderMenu()  : string
getRenderContext()  : RenderContext

Properties

$menuCache

Contains cached menu html for each render context to prevent multiple rendering of the same menu.

private array<string, string> $menuCache = []

Methods

getFunctions()

public getFunctions() : array<string|int, TwigFunction>
Return values
array<string|int, TwigFunction>

renderMenu()

public renderMenu(RenderContext} $context, string $menuType) : string
Parameters
$context : RenderContext}
$menuType : string
Return values
string

        
On this page

Search results