European Week of Regions and Cities

MenuHelper

Helper who provide some functions to build menu.

Table of Contents

Properties

$entityTypeManager  : EntityTypeManagerInterface
The entity type manager.
$moduleHandler  : ModuleHandlerInterface
The entity ModuleHandler.
$path  : CurrentPathStack
Host the current page path.
$twig  : TwigEnvironment
The twig environment container.

Methods

__construct()  : mixed
Constructs a User object.
create()  : mixed
Create container.
getMenu()  : mixed
Provide menu html.

Properties

$entityTypeManager

The entity type manager.

protected EntityTypeManagerInterface $entityTypeManager

$moduleHandler

The entity ModuleHandler.

protected ModuleHandlerInterface $moduleHandler

$path

Host the current page path.

protected CurrentPathStack $path

$twig

The twig environment container.

protected TwigEnvironment $twig

Methods

__construct()

Constructs a User object.

public __construct(ModuleHandlerInterface $moduleHandler, TwigEnvironment $twig, EntityTypeManagerInterface $entityTypeManager, CurrentPathStack $pathStack) : mixed
Parameters
$moduleHandler : ModuleHandlerInterface
$twig : TwigEnvironment
$entityTypeManager : EntityTypeManagerInterface
$pathStack : CurrentPathStack

create()

Create container.

public create(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

getMenu()

Provide menu html.

public getMenu() : mixed

        
On this page

Search results