public function WebformAjaxFormTrait::validateAjaxForm in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformAjaxFormTrait.php \Drupal\webform\Form\WebformAjaxFormTrait::validateAjaxForm()
Validate form #ajax callback.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
1 method overrides WebformAjaxFormTrait::validateAjaxForm()
- WebformSubmissionForm::validateAjaxForm in src/WebformSubmissionForm.php 
- Validate form #ajax callback.
File
- src/Form/ WebformAjaxFormTrait.php, line 245 
Class
- WebformAjaxFormTrait
- Trait class for Webform Ajax support.
Namespace
Drupal\webform\FormCode
public function validateAjaxForm(array &$form, FormStateInterface $form_state) {
  if (!$this
    ->isCallableAjaxCallback($form, $form_state)) {
    $this
      ->missingAjaxCallback($form, $form_state);
  }
}