function ExecutionContext::markConstraintAsValidated

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::markConstraintAsValidated()
  2. 8.9.x core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::markConstraintAsValidated()
  3. 10 core/lib/Drupal/Core/Validation/ExecutionContext.php \Drupal\Core\Validation\ExecutionContext::markConstraintAsValidated()

File

core/lib/Drupal/Core/Validation/ExecutionContext.php, line 205

Class

ExecutionContext
Defines an execution context class.

Namespace

Drupal\Core\Validation

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.