interface CvValidatorInterface in Clientside Validation 8.2
Same name and namespace in other branches
- 8 src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface
- 3.0.x src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface
- 2.0.x src/CvValidatorInterface.php \Drupal\clientside_validation\CvValidatorInterface
Defines an interface for ice cream flavor plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\clientside_validation\CvValidatorInterface
Expanded class hierarchy of CvValidatorInterface
All classes that implement CvValidatorInterface
File
- src/
CvValidatorInterface.php, line 11
Namespace
Drupal\clientside_validationView source
interface CvValidatorInterface extends PluginInspectionInterface {
/**
* Makes the necessary changes to the form element so it can be validated.
*
* @param array $element
* The form element to validate.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The form state of the form this element belongs to.
*/
public function addValidation(array &$element, FormStateInterface $form_state);
/**
* Return the name of the validator flavor.
*
* @return string
* The name of the validator.
*/
public function getName();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CvValidatorInterface:: |
public | function | Makes the necessary changes to the form element so it can be validated. | 1 |
CvValidatorInterface:: |
public | function | Return the name of the validator flavor. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |