SidebarComponentInterface
Interface for backend sidebar components.
Use the AsSidebarComponent attribute to register sidebar components and configure their identifier and ordering.
Table of Contents
Methods
- getResult() : SidebarComponentResult
- Render the sidebar component HTML.
- hasAccess() : bool
- Check if the current user has access to this sidebar component.
Methods
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