public function MerciConfigureAction::cancelFormData in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
Submit callback to cancel an action and return to the view.
Parameters
array $form: The form definition.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
File
- modules/
merci_line_item/ src/ Form/ MerciConfigureAction.php, line 73
Class
- MerciConfigureAction
- Action configuration form.
Namespace
Drupal\merci_line_item\FormCode
public function cancelFormData(array &$form, FormStateInterface $form_state) {
$form_data = $form_state
->get('views_bulk_operations');
$this
->getTempstore($form_data['view_id'], $form_data['display_id'])
->delete('validation_errors');
}