You are here

class IsNullConstraint in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\IsNullConstraint
  2. 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\IsNullConstraint

Null constraint.

Overrides the symfony constraint to handle empty Typed Data structures.

Plugin annotation


@Constraint(
  id = "Null",
  label = @Translation("Null", context = "Validation"),
  type = false
)

Hierarchy

  • class \Drupal\Core\Validation\Plugin\Validation\Constraint\IsNullConstraint extends \Symfony\Component\Validator\Constraints\IsNull

Expanded class hierarchy of IsNullConstraint

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php, line 18

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint
View source
class IsNullConstraint extends IsNull {

}

Members