public function BatchWatermarkForm::submitForm in Media watermark 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: An associative array containing the current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ BatchWatermarkForm.php, line 171
Class
- BatchWatermarkForm
- Class BatchWatermarkForm.
Namespace
Drupal\media_watermark\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$batch = $this
->addWatermarks($form_state);
batch_set($batch);
}