RouteBadge
API reference › Debug Core › Panel › Request › Routing › RouteBadge
Adapter-provided routing configuration badge.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$label readonly constructor | string | Badge label. | RouteBadge |
$variant readonly constructor | string | Badge variant, defaults to ‘muted’. Default: 'muted'. | RouteBadge |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a routing configuration badge. | RouteBadge |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $label, string $variant = 'muted')Creates a routing configuration badge.
Parameters
| Parameter | Type | Description |
|---|---|---|
$label | string | Badge label. |
$variant | string | Badge variant, defaults to ‘muted’. |