X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fentity_test%2Fsrc%2FPlugin%2FValidation%2FConstraint%2FEntityTestEntityLevelValidator.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fentity_test%2Fsrc%2FPlugin%2FValidation%2FConstraint%2FEntityTestEntityLevelValidator.php;h=3b84ada069ccaf6bc2852a3efca5f7935af82ae0;hp=6602fdcdc8bcdc3c7dc43ca08c24c2c2e55c3e0a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php b/web/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php index 6602fdcdc..3b84ada06 100644 --- a/web/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php +++ b/web/core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestEntityLevelValidator.php @@ -25,6 +25,11 @@ class EntityTestEntityLevelValidator extends ConstraintValidator { $this->context->buildViolation($constraint->message) ->addViolation(); } + if ($value->name->value === 'entity-level-violation-with-path') { + $this->context->buildViolation($constraint->message) + ->atPath('test.form.element') + ->addViolation(); + } } }