Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / TypedData / Validation / ContextualValidatorInterface.php
1 <?php
2
3 namespace Drupal\Core\TypedData\Validation;
4
5 use Symfony\Component\Validator\Validator\ContextualValidatorInterface as ContextualValidatorInterfaceBase;
6
7 /**
8  * Extends the contextual validator validate method by a new parameter.
9  */
10 interface ContextualValidatorInterface extends ContextualValidatorInterfaceBase {
11
12   /**
13    * Validates a value against a constraint or a list of constraints.
14    *
15    * If no constraint is passed, the constraint
16    * \Symfony\Component\Validator\Constraints\Valid is assumed.
17    *
18    * @param mixed $value
19    *   The value to validate
20    * @param \Symfony\Component\Validator\Constraint|\Symfony\Component\Validator\Constraint[] $constraints
21    *   The constraint(s) to validate against.
22    * @param array|null $groups
23    *   The validation groups to validate, defaults to "Default".
24    * @param bool $is_root_call
25    *   (optional) Whether its the most upper call in the typed data tree.
26    *
27    * @see \Symfony\Component\Validator\Constraints\Valid
28    *
29    * @return $this
30    */
31   public function validate($value, $constraints = NULL, $groups = NULL, $is_root_call = TRUE);
32
33 }