Skip to content
Corex

PostsRenderer

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

Renders recent posts as accessible, escaped, token-styled cards (each a linked heading). The post count is bounded (1–12, default 3); an empty result yields an accessible empty state. Posts come from the injected provider (testable).

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

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