- Issue created by @ultimike
Relocated from #3531327-5: Create new "power user" flag to disable warnings and validation β :
public function settingsForm(array $form, FormStateInterface $form_state): array { $this->settings = array_replace_recursive($this->defaultSettings(), $this->settings);
The fact that
defaultSettings()
are only merged insettingsForm()
, and not in the constructor orprocess()
, feels off. That said, it might be 100% valid. I'm thinking that if the filter ever processes text without the form being loaded first, it could result in unexpected behavior? I wonder if it makes more sense to initialize$this->settings
in the constructor.
Active
2.0
Code