Skip to content
Corex

SettingsForm

Corex\Config\Settings\SettingsForm · class · Config layer

Draws settings sections as form rows: a label, the control its type calls for, its help, and the conditions that show it (spec 032, spec 039, spec 060 M6). The Settings pages draw one page’s sections through {@see rows()} (spec 119). An option page draws all of its sections through {@see render()}, as tabs with one save button.

__construct(FieldSections $registry, SettingsControls $controls)

Section titled “__construct(FieldSections $registry, SettingsControls $controls)”

render(callable $value, string $nonceField, ?callable $sectionState, string $activeKey): string

Section titled “render(callable $value, string $nonceField, ?callable $sectionState, string $activeKey): string”

The whole form, as an option page draws it.

rows(string $sectionKey, array $section, callable $state, bool $readOnly): string

Section titled “rows(string $sectionKey, array $section, callable $state, bool $readOnly): string”

One section’s fields as a form table.