You are here

public function WebformUiElementFormBase::validateDefaultValue in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_ui/src/Form/WebformUiElementFormBase.php \Drupal\webform_ui\Form\WebformUiElementFormBase::validateDefaultValue()

Default value 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.

File

modules/webform_ui/src/Form/WebformUiElementFormBase.php, line 789

Class

WebformUiElementFormBase
Provides a base class for webform element webforms.

Namespace

Drupal\webform_ui\Form

Code

public function validateDefaultValue(array &$form, FormStateInterface $form_state) {

  // Suppress all errors to allow for tokens to be included as the default value.
  $form_state
    ->clearErrors();
}