You are here

public function ConfirmAction::submitForm in Views Bulk Operations (VBO) 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/ConfirmAction.php \Drupal\views_bulk_operations\Form\ConfirmAction::submitForm()
  2. 8 src/Form/ConfirmAction.php \Drupal\views_bulk_operations\Form\ConfirmAction::submitForm()
  3. 4.0.x src/Form/ConfirmAction.php \Drupal\views_bulk_operations\Form\ConfirmAction::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/ConfirmAction.php, line 124

Class

ConfirmAction
Default action execution confirmation form.

Namespace

Drupal\views_bulk_operations\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_data = $form_state
    ->get('views_bulk_operations');
  $this
    ->deleteTempstoreData($form_data['view_id'], $form_data['display_id']);
  $this->actionProcessor
    ->executeProcessing($form_data);
  $form_state
    ->setRedirectUrl($form_data['redirect_url']);
}