FieldState
Corex\Config\Settings\FieldState · class · Config layer
How one Settings field is drawn (spec 119): what its control shows, the stored value Discard puts back, where its value is locked when it is, and whether a secret has a stored value.
Public API
Section titled “Public API”__construct(string $shown, string $saved, ?SettingLock $lock, bool $secretSaved)
Section titled “__construct(string $shown, string $saved, ?SettingLock $lock, bool $secretSaved)”plain(string $value): self
Section titled “plain(string $value): self”A field that shows what is stored, as an option page draws every field.
locked(): bool
Section titled “locked(): bool”asTyped(string $typed): self
Section titled “asTyped(string $typed): self”The same field showing what was typed into it and refused, so it can be put right.