class CvValidator in Clientside Validation 8
Same name and namespace in other branches
- 8.2 src/Annotation/CvValidator.php \Drupal\clientside_validation\Annotation\CvValidator
- 3.0.x src/Annotation/CvValidator.php \Drupal\clientside_validation\Annotation\CvValidator
- 2.0.x src/Annotation/CvValidator.php \Drupal\clientside_validation\Annotation\CvValidator
Defines a clientside validation validator.
Plugin Namespace: Plugin\clientside_validation\CvValidator.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\clientside_validation\Annotation\CvValidator
Expanded class hierarchy of CvValidator
See also
\Drupal\clientside_validation\ValidatorManager
10 classes are annotated with CvValidator
- Email in src/
Plugin/ CvValidator/ Email.php - Provides a 'email' validator.
- EqualTo in clientside_validation_jquery/
src/ Plugin/ CvValidator/ EqualTo.php - Provides a 'equalTo' validator.
- Max in src/
Plugin/ CvValidator/ Max.php - Provides a 'max' validator.
- MaxLength in src/
Plugin/ CvValidator/ MaxLength.php - Provides a 'maxlength' validator.
- Min in src/
Plugin/ CvValidator/ Min.php - Provides a 'min' validator.
File
- src/
Annotation/ CvValidator.php, line 17
Namespace
Drupal\clientside_validation\AnnotationView source
class CvValidator extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The name of the validator.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $name;
/**
* An array with keys 'types' and 'attributes'.
*
* Each value is an array of types and attributes (respectively) this plugin
* supports.
*
* @var array
*/
public $supports = [
'types' => [],
'attributes' => [],
];
/**
* An array of assets that can be #attached to a form element.
*
* @var array
*/
public $attachments = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CvValidator:: |
public | property | An array of assets that can be #attached to a form element. | |
CvValidator:: |
public | property | The plugin ID. | |
CvValidator:: |
public | property | The name of the validator. | |
CvValidator:: |
public | property | An array with keys 'types' and 'attributes'. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |