You are here

public function ExecutionContextInterface::setConstraint in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Context

Code

public function setConstraint(Constraint $constraint);