public function ValidatorInterface::startContext in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface::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
2 methods override ValidatorInterface::startContext()
- RecursiveValidator::startContext in vendor/
symfony/ validator/ Validator/ RecursiveValidator.php - Starts a new validation context and returns a validator for that context.
- RecursiveValidator::startContext in core/
lib/ Drupal/ Core/ TypedData/ Validation/ RecursiveValidator.php - Starts a new validation context and returns a validator for that context.
File
- vendor/
symfony/ validator/ Validator/ ValidatorInterface.php, line 88
Class
- ValidatorInterface
- Validates PHP values against constraints.
Namespace
Symfony\Component\Validator\ValidatorCode
public function startContext();