SidebarNavItem
API reference › Debug Core › View › Sidebar › SidebarNavItem
Typed view-model for one entry in the debugger sidebar panel navigation.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$iconSvg readonly constructor | string | Pre-rendered SVG glyph for the link icon; empty string when the panel did not supply a toolbar icon. | SidebarNavItem |
$isActive readonly constructor | bool | true when this entry represents the currently active route drives the is-active modifier and the aria-current="page" attribute on the rendered <a>. | SidebarNavItem |
$label readonly constructor | string | Visible label shown next to the icon (‘History’, ‘Request’, ‘Database’, …). | SidebarNavItem |
$tooltip readonly constructor | string | title / aria-label hover text. | SidebarNavItem |
$url readonly constructor | string | Pre-built link target for the href attribute. | SidebarNavItem |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a debugger sidebar navigation entry. | SidebarNavItem |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $label, string $iconSvg, string $url, string $tooltip, bool $isActive)Creates a debugger sidebar navigation entry.
Parameters
| Parameter | Type | Description |
|---|---|---|
$label | string | |
$iconSvg | string | |
$url | string | |
$tooltip | string | |
$isActive | bool |