ModuleMenuSidebarComponent implements SidebarComponentInterface
Read onlyYes
FinalYes
Module menu sidebar component.
Renders the main backend module navigation menu in the sidebar.
Attributes
- #[AsSidebarComponent]
- $identifier: 'module-menu'
Table of Contents
Interfaces
- SidebarComponentInterface
- Interface for backend sidebar components.
Methods
- __construct() : mixed
- getResult() : SidebarComponentResult
- Render the sidebar component HTML.
- hasAccess() : bool
- Check if the current user has access to this sidebar component.
Methods
__construct()
public
__construct(ModuleProvider $moduleProvider, BackendViewFactory $viewFactory, UriBuilder $uriBuilder) : mixed
Parameters
- $moduleProvider : ModuleProvider
- $viewFactory : BackendViewFactory
- $uriBuilder : UriBuilder
getResult()
Render the sidebar component HTML.
public
getResult(SidebarComponentContext $context) : SidebarComponentResult
Parameters
- $context : SidebarComponentContext
Return values
SidebarComponentResulthasAccess()
Check if the current user has access to this sidebar component.
public
hasAccess(SidebarComponentContext $context) : bool
Parameters
- $context : SidebarComponentContext