function IntegrityViolationList::getFor

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;
}