public function RecursiveValidator::inContext in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::inContext()
- 8.0 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php \Drupal\Core\TypedData\Validation\RecursiveValidator::inContext()
Same name and namespace in other branches
- 8 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::inContext()
Returns a validator in the given execution context.
The returned validator adds all generated violations to the given context.
Parameters
ExecutionContextInterface $context The execution context:
Return value
ContextualValidatorInterface The validator for that context
Overrides ValidatorInterface::inContext
File
- vendor/
symfony/ validator/ Validator/ RecursiveValidator.php, line 89
Class
- RecursiveValidator
- Recursive implementation of {@link ValidatorInterface}.
Namespace
Symfony\Component\Validator\ValidatorCode
public function inContext(ExecutionContextInterface $context) {
return new RecursiveContextualValidator($context, $this->metadataFactory, $this->validatorFactory, $this->objectInitializers);
}