public function TestFieldConstraint::getRequiredOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint::getRequiredOptions()
Returns the name of the required options.
Override this method if you want to define required options.
Return value
array
Overrides Constraint::getRequiredOptions
See also
__construct()
File
- core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Validation/ Constraint/ TestFieldConstraint.php, line 26 - Contains \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint.
Class
- TestFieldConstraint
- Checks if a value is not equal.
Namespace
Drupal\field_test\Plugin\Validation\ConstraintCode
public function getRequiredOptions() {
return array(
'value',
);
}