Skip to content
docsv0.1.0

RenderTarget

The render targets a {@see \Milpa\Live\Contracts\Rendering\ComponentRendererInterface} may declare support for. JSON and PLAIN were removed because nothing in the lab implements them. ANSI is a declared exception to "proven": it is kept as a forward-looking target for TUI-adjacent renderers, but no renderer in the lab implements it yet — `supportsTarget(ANSI)` is `false` everywhere today. Re-add JSON/PLAIN, or wire a real ANSI renderer, only once something in the lab actually needs one.

RenderTarget::cases()

public static function cases(): array

RenderTarget::from()

public static function from(string|int $value): static

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

RenderTarget::tryFrom()

public static function tryFrom(string|int $value): ?static

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int