Analyze::submitForm

public Analyze::submitForm(array &$form, FormStateInterface $form_state)

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 ViewsFormBase::submitForm

File

core/modules/views_ui/src/Form/Ajax/Analyze.php, line 54

Class

Analyze
Displays analysis information for a view.

Namespace

Drupal\views_ui\Form\Ajax

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  /** @var $view \Drupal\views_ui\ViewUI */
  $view = $form_state->get('view');
  $form_state->setRedirectUrl($view->urlInfo('edit-form'));
}
doc_Drupal
2016-10-29 08:44:27
Comments
Leave a Comment

Please login to continue.