function ConfigHandlerExtra::validateForm
Overrides ViewsFormBase::validateForm
File
-
core/
modules/ views_ui/ src/ Form/ Ajax/ ConfigHandlerExtra.php, line 96
Class
- ConfigHandlerExtra
- Provides a form for configuring extra information for a Views UI item.
Namespace
Drupal\views_ui\Form\AjaxCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$form_state->get('handler')
->validateExtraOptionsForm($form['options'], $form_state);
if ($form_state->getErrors()) {
// Trigger a form rerender so error messages are displayed correctly in
// the AJAX modal.
// @see \Drupal\views_ui\Form\Ajax\ViewsFormBase::ajaxFormWrapper()
$form_state->set('rerender', TRUE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.