You are here

public function WebformUiElementFormBase::validateDefaultValue in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 815

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();
}