You are here

public function ExecutionContext::markConstraintAsValidated in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::markConstraintAsValidated()
  2. 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::markConstraintAsValidated()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::markConstraintAsValidated()

Marks a constraint as validated for an object.

@internal Used by the validator engine. Should not be called by user code.

Parameters

string $cacheKey The hash of the object:

string $constraintHash The hash of the constraint:

Overrides ExecutionContextInterface::markConstraintAsValidated

File

vendor/symfony/validator/Context/ExecutionContext.php, line 436

Class

ExecutionContext
The context used and created by {@link ExecutionContextFactory}.

Namespace

Symfony\Component\Validator\Context

Code

public function markConstraintAsValidated($cacheKey, $constraintHash) {
  $this->validatedConstraints[$cacheKey . ':' . $constraintHash] = true;
}