You are here

IsNullConstraint.php in Zircon Profile 8

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\IsNullConstraint.
 */
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

Namesort descending Description
IsNullConstraint Null constraint.