public function FileMimeApplyForm::submitForm in File MIME 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 FormInterface::submitForm
File
- src/
Form/ FileMimeApplyForm.php, line 54
Class
- FileMimeApplyForm
- Implements the file MIME apply settings form.
Namespace
Drupal\filemime\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
batch_set([
'operations' => [
[
'\\Drupal\\filemime\\Form\\FileMimeApplyForm::process',
[],
],
],
'finished' => '\\Drupal\\filemime\\Form\\FileMimeApplyForm::finished',
'title' => $this
->t('Processing File MIME batch'),
'init_message' => $this
->t('File MIME batch is starting.'),
'progress_message' => $this
->t('Please wait...'),
'error_message' => $this
->t('File MIME batch has encountered an error.'),
'file' => drupal_get_path('module', 'filemime') . '/src/Form/FileMimeApplyForm.php',
]);
}