public function MediaThumbnailsVideoSettingsForm::submitForm in Media Thumbnails Video 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/ MediaThumbnailsVideoSettingsForm.php, line 64
Class
- MediaThumbnailsVideoSettingsForm
- Configure MediaThumbnailsVideoSettingsForm.
Namespace
Drupal\media_thumbnails_video\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('media_thumbnails_video.settings')
->set('ffmpeg', $form_state
->getValue('ffmpeg'))
->set('ffprobe', $form_state
->getValue('ffprobe'))
->set('timeout', $form_state
->getValue('timeout'))
->set('threads', $form_state
->getValue('threads'))
->save();
parent::submitForm($form, $form_state);
}