You are here

public function FileHashGenerateForm::submitForm in File Hash 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/FileHashGenerateForm.php, line 53

Class

FileHashGenerateForm
Implements the file MIME generate settings form.

Namespace

Drupal\filehash\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  batch_set(GenerateBatch::createBatch());
}