Skip to content
PHP Ecosystem
Explore

ExtensionPill

API reference › Debug Core › Helper › ExtensionPill

final classPHPForge\Debug\Helper\ExtensionPill
Sourcesrc/Helper/ExtensionPill.php

Renders the shared yii-debug-ext-pill chip: a status LED, the extension name, and its state.

MethodDescriptionDefined by
render() staticRenders one extension pill.ExtensionPill
public static function render(string $label, string $state, bool $enabled, string $summary = ''): UIAwesome\Html\Phrasing\Span

Renders one extension pill.

Parameters

ParameterTypeDescription
$labelstringExtension or module name shown in the pill.
$statestringShort state text shown after the label (on, off, or a version).
$enabledboolWhether the extension is active, selecting the is-on / is-off modifier.
$summarystringScreen-reader-only detail appended after the state, or '' to omit it.

Returns

UIAwesome\Html\Phrasing\Span: Extension pill element.