You are here

public function ExecutionContext::markGroupAsValidated in Zircon Profile 8.0

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

Marks an object as validated in a specific validation group.

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

Parameters

string $cacheKey The hash of the object:

string $groupHash The group's name or hash, if it is group: sequence

Overrides ExecutionContextInterface::markGroupAsValidated

File

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

Class

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

Namespace

Symfony\Component\Validator\Context

Code

public function markGroupAsValidated($cacheKey, $groupHash) {
  if (!isset($this->validatedObjects[$cacheKey])) {
    $this->validatedObjects[$cacheKey] = array();
  }
  $this->validatedObjects[$cacheKey][$groupHash] = true;
}