public function ConfirmAction::submitForm in Views Bulk Operations (VBO) 8
Same name and namespace in other branches
- 8.3 src/Form/ConfirmAction.php \Drupal\views_bulk_operations\Form\ConfirmAction::submitForm()
- 8.2 src/Form/ConfirmAction.php \Drupal\views_bulk_operations\Form\ConfirmAction::submitForm()
- 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 123
Class
- ConfirmAction
- Default action execution confirmation form.
Namespace
Drupal\views_bulk_operations\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_data = $form_state
->getStorage();
$this->tempStoreFactory
->get($form_data['tempstore_name'])
->delete($this
->currentUser()
->id());
$this->actionProcessor
->executeProcessing($form_data);
$form_state
->setRedirectUrl($form_data['redirect_url']);
}