class TestFieldConstraint
Same name in other branches
- 9 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint
- 8.9.x core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint
- 10 core/modules/field/tests/modules/field_test/src/Plugin/Validation/Constraint/TestFieldConstraint.php \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint
Checks if a value is not equal.
Hierarchy
- class \Drupal\field_test\Plugin\Validation\Constraint\TestFieldConstraint extends \Symfony\Component\Validator\Constraints\NotEqualTo
Expanded class hierarchy of TestFieldConstraint
File
-
core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Validation/ Constraint/ TestFieldConstraint.php, line 14
Namespace
Drupal\field_test\Plugin\Validation\ConstraintView source
class TestFieldConstraint extends NotEqualTo {
/**
* {@inheritdoc}
*/
public function getRequiredOptions() : array {
return [
'value',
];
}
/**
* {@inheritdoc}
*/
public function validatedBy() : string {
return '\\Symfony\\Component\\Validator\\Constraints\\NotEqualToValidator';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestFieldConstraint::getRequiredOptions | public | function | |
TestFieldConstraint::validatedBy | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.