IsNullConstraint.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php
  2. 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php
  3. 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php

View source
<?php

namespace Drupal\Core\Validation\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraints\IsNull;

/**
 * Null constraint.
 *
 * Overrides the symfony constraint to handle empty Typed Data structures.
 *
 * @Constraint(
 *   id = "Null",
 *   label = @Translation("Null", context = "Validation"),
 *   type = false
 * )
 */
class IsNullConstraint extends IsNull {

}

Classes

Title Deprecated Summary
IsNullConstraint Null constraint.

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