ExtensionPill
API reference › Debug Core › Helper › ExtensionPill
Renders the shared yii-debug-ext-pill chip: a status LED, the extension name, and its state.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Renders one extension pill. | ExtensionPill |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(string $label, string $state, bool $enabled, string $summary = ''): UIAwesome\Html\Phrasing\SpanRenders one extension pill.
Parameters
| Parameter | Type | Description |
|---|---|---|
$label | string | Extension or module name shown in the pill. |
$state | string | Short state text shown after the label (on, off, or a version). |
$enabled | bool | Whether the extension is active, selecting the is-on / is-off modifier. |
$summary | string | Screen-reader-only detail appended after the state, or '' to omit it. |
Returns
UIAwesome\Html\Phrasing\Span: Extension pill element.