Skip to content
PHP Ecosystem
Explore

UserPanel

API reference › Debug Core › Panel › User › UserPanel

final classPHPForge\Debug\Panel\User\UserPanel
ExtendsPHPForge\Debug\Panel
Sourcesrc/Panel/User/UserPanel.php

Presents the authenticated identity as a hero, its attributes grouped by section, and the RBAC roles and permissions.

MethodDescriptionDefined by
present()Builds the panel view from the decoded identity capture.UserPanel
ConstantValueDescriptionDefined by
ICON\PHPForge\Debug\Panel\User\UserMessage::ID->valueUserPanel
ID\PHPForge\Debug\Panel\User\UserMessage::ID->valueUserPanel
TITLE\PHPForge\Debug\Panel\User\UserMessage::TITLE->valueUserPanel
public function present(array<string, mixed> $data): PHPForge\Debug\PanelView

Builds 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

ParameterTypeDescription
$dataarray<string, mixed>Decoded panel payload with a data key holding the tagged identity.

Returns

PanelView: Identity hero, attribute sections, and the RBAC sections.