public function 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]);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Validation!ExecutionContext.php/function/ExecutionContext::isGroupValidated/8.1.x