You are here

protected property Required::$states in Clientside Validation 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/CvValidator/Required.php \Drupal\clientside_validation\Plugin\CvValidator\Required::states
  2. 3.0.x src/Plugin/CvValidator/Required.php \Drupal\clientside_validation\Plugin\CvValidator\Required::states
  3. 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\CvValidator

Code

protected $states = [
  'required' => 'required',
  'optional' => 'optional',
  '!required' => '!required',
  '!optional' => '!optional',
];