public function ImageStyleWarmerSettingsForm::submitForm in Image Style Warmer 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- src/
Form/ ImageStyleWarmerSettingsForm.php, line 78
Class
- ImageStyleWarmerSettingsForm
- Provides a form for creating and editing Image Style Warmer settings.
Namespace
Drupal\image_style_warmer\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->configFactory()
->getEditable('image_style_warmer.settings');
$form_state
->cleanValues();
foreach ($form_state
->getValues() as $key => $value) {
$config
->set($key, $value);
}
$config
->save();
parent::submitForm($form, $form_state);
}