You are here

public function ValidatorInterface::inContext in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface::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

2 methods override ValidatorInterface::inContext()
RecursiveValidator::inContext in vendor/symfony/validator/Validator/RecursiveValidator.php
Returns a validator in the given execution context.
RecursiveValidator::inContext in core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php
Returns a validator in the given execution context.

File

vendor/symfony/validator/Validator/ValidatorInterface.php, line 100

Class

ValidatorInterface
Validates PHP values against constraints.

Namespace

Symfony\Component\Validator\Validator

Code

public function inContext(ExecutionContextInterface $context);