function TestFieldConstraint::getRequiredOptions

Same name in other branches
  1. 9 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::getRequiredOptions()
  2. 8.9.x core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::getRequiredOptions()
  3. 10 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::getRequiredOptions()

File

core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php, line 24

Class

TestFieldConstraint
Checks if a value is not equal.

Namespace

Drupal\field_test\Plugin\Validation\Constraint

Code

public function getRequiredOptions() : array {
    return [
        'value',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.