Skip to content
Corex

AlertRenderer

Corex\Ui\Blocks\AlertRenderer · class · Add-ons layer

Renders an accessible alert (spec 051): a role="alert" region with the message and a variant (info/success/warning/error) by class — token-only, escaped, RTL. An empty message renders nothing (graceful default).

render(array $attributes, string $content, object $block): string

Section titled “render(array $attributes, string $content, object $block): string”