Call to unknown method: Drupal\Core\Config\ConfigBase::save()PHP(PHP0418)
My code:
public function submitForm(array &$form, FormStateInterface $form_state): void
{
// Update the configuration.
$this->configFactory->getEditable(static::SETTINGS)
// Set the submitted configuration setting.
->set('pacer_site_mode', $form_state->getValue('pacer_site_mode'))
->set('contact_log_email', $form_state->getValue('contact_log_email'))
->save();
parent::submitForm($form, $form_state);
}
The save method is in the class Config and StorageConfig