public function RecursiveValidator::startContext in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::startContext()
- 8 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php \Drupal\Core\TypedData\Validation\RecursiveValidator::startContext()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::startContext()
Starts a new validation context and returns a validator for that context.
The returned validator collects all violations generated within its context. You can access these violations with the {@link ContextualValidatorInterface::getViolations()} method.
Return value
ContextualValidatorInterface The validator for the new context
Overrides ValidatorInterface::startContext
File
- vendor/
symfony/ validator/ Validator/ RecursiveValidator.php, line 76
Class
- RecursiveValidator
- Recursive implementation of {@link ValidatorInterface}.
Namespace
Symfony\Component\Validator\ValidatorCode
public function startContext($root = null) {
return new RecursiveContextualValidator($this->contextFactory
->createContext($this, $root), $this->metadataFactory, $this->validatorFactory, $this->objectInitializers);
}