Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/GroupSequence.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
15 * A sequence of validation groups. | 15 * A sequence of validation groups. |
16 * | 16 * |
17 * When validating a group sequence, each group will only be validated if all | 17 * When validating a group sequence, each group will only be validated if all |
18 * of the previous groups in the sequence succeeded. For example: | 18 * of the previous groups in the sequence succeeded. For example: |
19 * | 19 * |
20 * $validator->validate($address, null, new GroupSequence(array('Basic', 'Strict'))); | 20 * $validator->validate($address, null, new GroupSequence(['Basic', 'Strict'])); |
21 * | 21 * |
22 * In the first step, all constraints that belong to the group "Basic" will be | 22 * In the first step, all constraints that belong to the group "Basic" will be |
23 * validated. If none of the constraints fail, the validator will then validate | 23 * validated. If none of the constraints fail, the validator will then validate |
24 * the constraints in group "Strict". This is useful, for example, if "Strict" | 24 * the constraints in group "Strict". This is useful, for example, if "Strict" |
25 * contains expensive checks that require a lot of CPU or slow, external | 25 * contains expensive checks that require a lot of CPU or slow, external |