public function ImageFocusSettingsForm::submitForm in Image Focus Crop 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/ ImageFocusSettingsForm.php, line 45
Class
- ImageFocusSettingsForm
- Configure Image focus settings for this site.
Namespace
Drupal\image_focus\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('image_focus.settings')
->set('image_focus_face_detection_maxsize', $form_state
->getValue('image_focus_face_detection_maxsize'))
->save();
parent::submitForm($form, $form_state);
}