Skip to content
PHP Ecosystem
Explore

Badge

API reference › Debug Core › Helper › Badge

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

Renders the shared badge chip carrying a semantic tone.

MethodDescriptionDefined by
render() staticRenders one badge chip.Badge
public static function render(string $label, PHPForge\Debug\Tone $tone, string $modifier = ''): UIAwesome\Html\Phrasing\Span

Renders one badge chip.

Parameters

ParameterTypeDescription
$labelstringText shown inside the chip.
$tonePHPForge\Debug\ToneSemantic tone selecting the chip hue.
$modifierstringExtra CSS classes appended after the tone class, or '' to add none.

Returns

UIAwesome\Html\Phrasing\Span: Badge chip element.