You are here

public function ProximityFormField::viewsFormSubmit in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 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 123

Class

ProximityFormField
Field handler for geolocation field.

Namespace

Drupal\geolocation\Plugin\views\field

Code

public function viewsFormSubmit(array &$form, FormStateInterface $form_state) {
  if ($form_state
    ->get('step') == 'views_form_views_form') {
    $form_state
      ->disableRedirect(TRUE);
  }
}