ExecutionContext::isConstraintValidated

public ExecutionContext::isConstraintValidated($cache_key, $constraint_hash)

Returns whether a constraint was 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:

Return value

bool Whether the constraint was already validated

Overrides ExecutionContextInterface::isConstraintValidated

File

core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 270

Class

ExecutionContext
Defines an execution context class.

Namespace

Drupal\Core\TypedData\Validation

Code

public function isConstraintValidated($cache_key, $constraint_hash) {
  return isset($this->validatedConstraints[$cache_key . ':' . $constraint_hash]);
}
doc_Drupal
2016-10-29 09:09:30
Comments
Leave a Comment

Please login to continue.