Skip to content
Corex

FormBlockRenderer

Corex\Forms\Block\FormBlockRenderer · class · Forms layer

Server-renders a registered form from its schema: accessible (label-bound inputs, required markers, an aria-live status), translation-ready, RTL-aware (logical CSS, applied via the block’s stylesheet — no inline styles), and carrying the REST nonce + honeypot the secured endpoint expects. Unknown slug → empty output (non-fatal).

__construct(FormRegistry $forms, SchemaResolver $resolver, SchemaExporter $exporter, FieldRenderer $fieldRenderer, ?FlowBlockRenderer $flowRenderer, ?FormChallengeContextFactory $challenge, ?ProtectedFormRegistry $protectedForms)

Section titled “__construct(FormRegistry $forms, SchemaResolver $resolver, SchemaExporter $exporter, FieldRenderer $fieldRenderer, ?FlowBlockRenderer $flowRenderer, ?FormChallengeContextFactory $challenge, ?ProtectedFormRegistry $protectedForms)”

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

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