public function CvValidatorInterface::addValidation in Clientside Validation 8.2
Same name and namespace in other branches
- 8 src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface::addValidation()
- 3.0.x src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface::addValidation()
- 2.0.x src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface::addValidation()
Makes the necessary changes to the form element so it can be validated.
Parameters
array $element: The form element to validate.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the form this element belongs to.
1 method overrides CvValidatorInterface::addValidation()
- CvValidatorBase::addValidation in src/
CvValidatorBase.php - Makes the necessary changes to the form element so it can be validated.
File
- src/
CvValidatorInterface.php, line 21
Class
- CvValidatorInterface
- Defines an interface for ice cream flavor plugins.
Namespace
Drupal\clientside_validationCode
public function addValidation(array &$element, FormStateInterface $form_state);