Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Plugin / Validation / Constraint / EntityTestEntityLevelValidator.php
index 6602fdcdc8bcdc3c7dc43ca08c24c2c2e55c3e0a..3b84ada069ccaf6bc2852a3efca5f7935af82ae0 100644 (file)
@@ -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();
+    }
   }
 
 }