You are here

public static function WebformTestElement::validate in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestElement.php \Drupal\webform_test_element\Plugin\WebformElement\WebformTestElement::validate()

Form API callback. Convert password confirm array to single value.

File

tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestElement.php, line 133

Class

WebformTestElement
Provides a 'webform_test_element' element.

Namespace

Drupal\webform_test_element\Plugin\WebformElement

Code

public static function validate(array &$element, FormStateInterface $form_state) {
  \Drupal::messenger()
    ->addStatus(t('Invoked: Drupal\\webform_test_element\\Plugin\\WebformElement\\WebformTestElement::validate'));
}