public function SettingsForm::submitForm in Media PDF Thumbnail 8
Same name and namespace in other branches
- 8.2 src/Form/SettingsForm.php \Drupal\media_pdf_thumbnail\Form\SettingsForm::submitForm()
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 FormInterface::submitForm
File
- src/
Form/ SettingsForm.php, line 44
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\media_pdf_thumbnail\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$batch = [
'title' => t('Regenerates media thumbnails'),
'operations' => [
[
'\\Drupal\\media_pdf_thumbnail\\Form\\settingsForm::regenerateThumbnails',
[],
],
],
];
batch_set($batch);
}