You are here

NotNullConstraint.php in Zircon Profile 8.0

File

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

/**
 * @file
 * Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\NotNullConstraint.
 */
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraints\NotNull;

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

}

Classes

Namesort descending Description
NotNullConstraint NotNull constraint.