You are here

public function IntegrityViolationList::getFor in Rules 8.3

File

src/Engine/IntegrityViolationList.php, line 81

Class

IntegrityViolationList
Collection of integrity violations.

Namespace

Drupal\rules\Engine

Code

public function getFor($uuid) {
  $uuid_violations = [];
  foreach ($this as $violation) {
    if ($violation
      ->getUuid() === $uuid) {
      $uuid_violations[] = $violation;
    }
  }
  return $uuid_violations;
}