public function ExecutionContext::markConstraintAsValidated in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::markConstraintAsValidated()
- 8.0 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::markConstraintAsValidated()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\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
- core/
lib/ Drupal/ Core/ TypedData/ Validation/ ExecutionContext.php, line 268 - Contains \Drupal\Core\TypedData\Validation\ExecutionContext.
Class
- ExecutionContext
- Defines an execution context class.
Namespace
Drupal\Core\TypedData\ValidationCode
public function markConstraintAsValidated($cache_key, $constraint_hash) {
$this->validatedConstraints[$cache_key . ':' . $constraint_hash] = TRUE;
}