UserPanel
API reference › Debug Core › Panel › User › UserPanel
Presents the authenticated identity as a hero, its attributes grouped by section, and the RBAC roles and permissions.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
present() | Builds the panel view from the decoded identity capture. | UserPanel |
Constants
Section titled “Constants”| Constant | Value | Description | Defined by |
|---|---|---|---|
ICON | \ | UserPanel | |
ID | \ | UserPanel | |
TITLE | \ | UserPanel |
Method details
Section titled “Method details”present()
Section titled “present() ”public function present(array<string, mixed> $data): PHPForge\Debug\PanelViewBuilds the panel view from the decoded identity capture.
An authenticated capture opens with a hero naming the user, its status, and its RBAC grant, followed by one section per attribute bucket and one per RBAC list; a guest capture shows the empty state alone.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | array<string, | Decoded panel payload with a data key holding the tagged identity. |
Returns
PanelView: Identity hero, attribute sections, and the RBAC sections.