You are here

public static function WebformComputedBase::validateWebformComputedCallback in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformComputedBase.php \Drupal\webform\Element\WebformComputedBase::validateWebformComputedCallback()

Webform computed element validate 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.

File

src/Element/WebformComputedBase.php, line 236

Class

WebformComputedBase
Provides a base class for 'webform_computed' elements.

Namespace

Drupal\webform\Element

Code

public static function validateWebformComputedCallback(array $form, FormStateInterface $form_state) {
  $form_state
    ->clearErrors();
}