You are here

public function MediaThumbnailRefreshForm::submitForm in Media Thumbnails 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/MediaThumbnailRefreshForm.php, line 53

Class

MediaThumbnailRefreshForm
Implements thumbnail refresh confirmation form.

Namespace

Drupal\media_thumbnails\Form

Code

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