X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fcrop%2Fsrc%2FPlugin%2FValidation%2FConstraint%2FCropTypeMachineNameValidationConstraintValidator.php;fp=web%2Fmodules%2Fcontrib%2Fcrop%2Fsrc%2FPlugin%2FValidation%2FConstraint%2FCropTypeMachineNameValidationConstraintValidator.php;h=977155d61bc30fb7476189249dc84345c54ef69b;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/crop/src/Plugin/Validation/Constraint/CropTypeMachineNameValidationConstraintValidator.php b/web/modules/contrib/crop/src/Plugin/Validation/Constraint/CropTypeMachineNameValidationConstraintValidator.php new file mode 100644 index 000000000..977155d61 --- /dev/null +++ b/web/modules/contrib/crop/src/Plugin/Validation/Constraint/CropTypeMachineNameValidationConstraintValidator.php @@ -0,0 +1,33 @@ +id()) == '0') { + $this->context->buildViolation($constraint->message) + ->atPath('id') + ->addViolation(); + } + } + +}