public function CvWebformIntegerValidator::supports in Clientside Validation 7.2
Overrides CvWebformValidator::supports
File
- clientside_validation_webform/
plugins/ validator/ webforminteger.inc, line 12
Class
Code
public function supports(array $element, array &$form_state) {
return parent::supports($element, $form_state) && $element['#webform_component']['type'] == 'number' && $element['#webform_component']['extra']['integer'];
}