ExecutionContext::isGroupValidated

public ExecutionContext::isGroupValidated($cache_key, $group_hash)

Returns whether an object was 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

Return value

bool Whether the object was already validated for that group

Overrides ExecutionContextInterface::isGroupValidated

File

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

Class

ExecutionContext
Defines an execution context class.

Namespace

Drupal\Core\TypedData\Validation

Code

public function isGroupValidated($cache_key, $group_hash) {
  return isset($this->validatedObjects[$cache_key][$group_hash]);
}
doc_Drupal
2016-10-29 09:09:30
Comments
Leave a Comment

Please login to continue.