SettingsSectionStates
Corex\Config\Settings\SettingsSectionStates · class · Config layer
The state of each Settings section (spec 060 M6, spec 119 US-SET-07). A section on a page that belongs to an add-on follows it: Hidden when the add-on’s plugin is not there, Disabled when it is off. Media, Captcha and Guides belong to add-ons; Guides used to stay editable with Corex Guides off, saving an address nothing read. A captcha provider that needs a key it does not have is ConfigurationNeeded, read from the value in force.
Public API
Section titled “Public API”__construct(SettingsPages $pages, PluginActivationInspector $plugins, ProviderSetup $providers)
Section titled “__construct(SettingsPages $pages, PluginActivationInspector $plugins, ProviderSetup $providers)”of(string $sectionKey): ?SettingsSectionState
Section titled “of(string $sectionKey): ?SettingsSectionState”forPage(SettingsPage $page): SettingsSectionState
Section titled “forPage(SettingsPage $page): SettingsSectionState”editable(string $sectionKey): bool
Section titled “editable(string $sectionKey): bool”Whether a save may write this section: its add-on is there and on (spec 114, FR-028).