You are here

NotNullConstraint.php in Drupal 9

File

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

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.