diff --git a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php index 401be63..714a0d2 100644 --- a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php +++ b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php @@ -14,7 +14,7 @@ * * Overrides the symfony constraint to handle empty Typed Data structures. * - * @Plugin( + * @Constraint( * id = "Null", * label = @Translation("Null", context = "Validation"), * type = false diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php index c3b6ce8..79f6c02 100644 --- a/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php +++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php @@ -12,7 +12,7 @@ /** * Constraint with multiple fields. * - * @Plugin( + * @Constraint( * id = "EntityTestComposite", * label = @Translation("Constraint with multiple fields."), * type = "entity"