protected property Required::$states in Clientside Validation 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/CvValidator/Required.php \Drupal\clientside_validation\Plugin\CvValidator\Required::states
- 8 src/Plugin/CvValidator/Required.php \Drupal\clientside_validation\Plugin\CvValidator\Required::states
- 2.0.x src/Plugin/CvValidator/Required.php \Drupal\clientside_validation\Plugin\CvValidator\Required::states
An array of conditionally required states.
Type: array
File
- src/
Plugin/ CvValidator/ Required.php, line 26
Class
- Required
- Provides a 'required' validator.
Namespace
Drupal\clientside_validation\Plugin\CvValidatorCode
protected $states = [
'required' => 'required',
'optional' => 'optional',
'!required' => '!required',
'!optional' => '!optional',
];