public function Analyze::submitForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views_ui/src/Form/Ajax/Analyze.php \Drupal\views_ui\Form\Ajax\Analyze::submitForm()
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 56
Class
- Analyze
- Displays analysis information for a view.
Namespace
Drupal\views_ui\Form\AjaxCode
public function submitForm(array &$form, FormStateInterface $form_state) {
/** @var \Drupal\views_ui\ViewUI $view */
$view = $form_state
->get('view');
$form_state
->setRedirectUrl($view
->toUrl('edit-form'));
}