public function ExecutionContext::setConstraint in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::setConstraint()
- 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::setConstraint()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::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:
Overrides ExecutionContextInterface::setConstraint
File
- vendor/
symfony/ validator/ Context/ ExecutionContext.php, line 178
Class
- ExecutionContext
- The context used and created by {@link ExecutionContextFactory}.
Namespace
Symfony\Component\Validator\ContextCode
public function setConstraint(Constraint $constraint) {
$this->constraint = $constraint;
}