public function ProximityFormField::viewsFormSubmit in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/views/field/ProximityFormField.php \Drupal\geolocation\Plugin\views\field\ProximityFormField::viewsFormSubmit()
Submit handler for the bulk form.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Throws
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException Thrown when the user tried to access an action without access to it.
File
- src/
Plugin/ views/ field/ ProximityFormField.php, line 118
Class
- ProximityFormField
- Field handler for geolocation field.
Namespace
Drupal\geolocation\Plugin\views\fieldCode
public function viewsFormSubmit(array &$form, FormStateInterface $form_state) {
if ($form_state
->get('step') == 'views_form_views_form') {
$form_state
->disableRedirect(TRUE);
}
}