class NotNullConstraint
Same name in other branches
- 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\NotNullConstraint
- 8.9.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\NotNullConstraint
- 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\NotNullConstraint
NotNull constraint.
Overrides the symfony constraint to handle empty Typed Data structures.
Hierarchy
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\NotNullConstraint extends \Symfony\Component\Validator\Constraints\NotNull
Expanded class hierarchy of NotNullConstraint
1 file declares its use of NotNullConstraint
- ModerationStateConstraintValidator.php in core/
modules/ content_moderation/ src/ Plugin/ Validation/ Constraint/ ModerationStateConstraintValidator.php
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ NotNullConstraint.php, line 14
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintView source
class NotNullConstraint extends NotNull {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.