function ConfigHandler::validateForm

Same name in other branches
  1. 9 core/modules/views_ui/src/Form/Ajax/ConfigHandler.php \Drupal\views_ui\Form\Ajax\ConfigHandler::validateForm()
  2. 8.9.x core/modules/views_ui/src/Form/Ajax/ConfigHandler.php \Drupal\views_ui\Form\Ajax\ConfigHandler::validateForm()
  3. 11.x core/modules/views_ui/src/Form/Ajax/ConfigHandler.php \Drupal\views_ui\Form\Ajax\ConfigHandler::validateForm()

Overrides ViewsFormBase::validateForm

File

core/modules/views_ui/src/Form/Ajax/ConfigHandler.php, line 193

Class

ConfigHandler
Provides a form for configuring an item in the Views UI.

Namespace

Drupal\views_ui\Form\Ajax

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
    $form_state->get('handler')
        ->validateOptionsForm($form['options'], $form_state);
    if ($form_state->getErrors()) {
        $form_state->set('rerender', TRUE);
    }
}

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