public function ExecutionContextInterface::setConstraint in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Context/ExecutionContextInterface.php \Symfony\Component\Validator\Context\ExecutionContextInterface::setConstraint()
Sets the currently validated constraint.
@internal Used by the validator engine. Should not be called by user code.
Parameters
Constraint $constraint The validated constraint:
2 methods override ExecutionContextInterface::setConstraint()
- ExecutionContext::setConstraint in vendor/
symfony/ validator/ Context/ ExecutionContext.php - Sets the currently validated constraint.
- ExecutionContext::setConstraint in core/
lib/ Drupal/ Core/ TypedData/ Validation/ ExecutionContext.php - Sets the currently validated constraint.
File
- vendor/
symfony/ validator/ Context/ ExecutionContextInterface.php, line 149
Class
- ExecutionContextInterface
- The context of a validation run.
Namespace
Symfony\Component\Validator\ContextCode
public function setConstraint(Constraint $constraint);