function ViewsFormAjaxHelperTrait::noJsSubmit

Same name and namespace in other branches
  1. main core/modules/views/src/ViewsFormAjaxHelperTrait.php \Drupal\views\ViewsFormAjaxHelperTrait::noJsSubmit()

Provides a callback for non-JavaScript submit.

Parameters

array $form: The form render array.

\Drupal\Core\Form\FormStateInterface $formState: The current state of the form.

File

core/modules/views/src/ViewsFormAjaxHelperTrait.php, line 241

Class

ViewsFormAjaxHelperTrait
Provides reusable code to be shared by Views Ajax forms.

Namespace

Drupal\views

Code

public static function noJsSubmit(array $form, FormStateInterface $formState) : void {
  $formState->setRebuild();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.