WARNING: Suppressing these messages does not "e;fix"e; the problem and you will inevitably encounter issues when they are removed in future updates. Only use this setting in extreme and necessary circumstances."), * groups = { * "advanced" = @Translation("Advanced"), * }, * ) */ class SuppressDeprecatedWarnings extends SettingBase { /** * {@inheritdoc} */ public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL) { $setting = $this->getSettingElement($form, $form_state); $setting->setProperty('states', [ 'visible' => [ ':input[name="include_deprecated"]' => ['checked' => TRUE], ], ]); } }