Sidebar
Read onlyYes
FinalYes
Renders the complete backend sidebar with all registered components.
Table of Contents
Methods
- __construct() : mixed
- getComponentByIdentifier() : SidebarComponentInterface|null
- isAccessible() : bool
- isExpanded() : bool
-
render()
: array{html: string, modules: list
, accessible: bool, expanded: bool}
Methods
__construct()
public
__construct(array<string, SidebarComponentInterface> $components, SidebarComponentContext $context) : mixed
Parameters
- $components : array<string, SidebarComponentInterface>
-
Components keyed by identifier
- $context : SidebarComponentContext
getComponentByIdentifier()
public
getComponentByIdentifier(string $identifier) : SidebarComponentInterface|null
Parameters
- $identifier : string
Return values
SidebarComponentInterface|nullisAccessible()
public
isAccessible() : bool
Return values
boolisExpanded()
public
isExpanded() : bool
Return values
boolrender()
public
render() : array{html: string, modules: list, accessible: bool, expanded: bool}