UserIdentityHero
API reference › Debug Core › Panel › User › UserIdentityHero
Typed view-model for the user-identity hero card: monogram, name, email, status pill, and id pill.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$email readonly constructor | string | User email, or '' when not present on the identity. | UserIdentityHero |
$idValue readonly constructor | string | Stringified user id, or '' when not present on the identity. | UserIdentityHero |
$monogram readonly constructor | string | Uppercase one-letter monogram for the avatar (for example, A for admin), falling back to ? when neither username nor email is available. | UserIdentityHero |
$statusLabel readonly constructor | string | Status display label (Active, Banned, Inactive, custom value, or Unknown), or '' when the identity does not carry a status field. | UserIdentityHero |
$statusVariant readonly constructor | string | CSS variant token (success / danger / muted) controlling the status pill tint. | UserIdentityHero |
$username readonly constructor | string | Display username; falls back to Unknown user when the identity has no username or name. | UserIdentityHero |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the user-identity hero card data. | UserIdentityHero |
Property details
Section titled “Property details”$idValue
Section titled “$idValue ”public readonly string $idValueStringified user id, or '' when not present on the identity.
Rendered next to the status pill as ID #<value>.
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $username, string $email, string $idValue, string $monogram, string $statusLabel, string $statusVariant)Creates the user-identity hero card data.
Parameters
| Parameter | Type | Description |
|---|---|---|
$username | string | |
$email | string | |
$idValue | string | |
$monogram | string | |
$statusLabel | string | |
$statusVariant | string |