You are here

public function CvValidatorInterface::addValidation in Clientside Validation 8

Same name and namespace in other branches
  1. 8.2 src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface::addValidation()
  2. 3.0.x src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface::addValidation()
  3. 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_validation

Code

public function addValidation(array &$element, FormStateInterface $form_state);