MiddleMenuController
extends ControllerBase
in package
Provide a menu for Middle office pages.
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
- Constructor.
- buildMenu() : mixed
- Render middle-front menu.
- create() : mixed
- Create container.
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()
Constructor.
public
__construct(TwigEnvironment $twig, ModuleHandlerInterface $moduleHandler, EntityTypeManagerInterface $entityTypeManager, CurrentPathStack $pathStack) : mixed
Parameters
- $twig : TwigEnvironment
- $moduleHandler : ModuleHandlerInterface
- $entityTypeManager : EntityTypeManagerInterface
- $pathStack : CurrentPathStack
buildMenu()
Render middle-front menu.
public
buildMenu() : mixed
create()
Create container.
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface