public function ConfigHandler::validateForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views_ui/src/Form/Ajax/ConfigHandler.php \Drupal\views_ui\Form\Ajax\ConfigHandler::validateForm()
Form validation 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::validateForm
File
- core/
modules/ views_ui/ src/ Form/ Ajax/ ConfigHandler.php, line 201 - Contains \Drupal\views_ui\Form\Ajax\ConfigHandler.
Class
- ConfigHandler
- Provides a form for configuring an item in the Views UI.
Namespace
Drupal\views_ui\Form\AjaxCode
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);
}
}