class FrontendMenuExtension extends AbstractExtension (View source)

Methods

__construct(FrontendMenuBuilderInterface $menuBuilder, RequestStack $requestStack)

No description

array
getFunctions()

{@inheritdoc}

array
getMenu(string|null $name = null)

No description

string
renderMenu(Environment $twig, string|null $name = null, string $template = 'helpers/_menu.html.twig', string $class = '', bool $withsubmenus = true)

No description

bool
isCurrent($item)

No description

Details

__construct(FrontendMenuBuilderInterface $menuBuilder, RequestStack $requestStack)

Parameters

FrontendMenuBuilderInterface $menuBuilder
RequestStack $requestStack

array getFunctions()

{@inheritdoc}

Return Value

array

array getMenu(string|null $name = null)

Parameters

string|null $name

Return Value

array

string renderMenu(Environment $twig, string|null $name = null, string $template = 'helpers/_menu.html.twig', string $class = '', bool $withsubmenus = true)

Parameters

Environment $twig
string|null $name
string $template
string $class
bool $withsubmenus

Return Value

string

bool isCurrent($item)

Parameters

$item

Return Value

bool