You are here

public function IntegrityViolationList::get in Rules 8.3

Returns the violation at a given offset.

Parameters

int $offset: The offset of the violation.

Return value

\Drupal\rules\Engine\IntegrityViolationInterface The violation.

Throws

\Drupal\rules\Exception\OutOfBoundsException Thrown if the offset does not exist.

File

src/Engine/IntegrityViolationList.php, line 41

Class

IntegrityViolationList
Collection of integrity violations.

Namespace

Drupal\rules\Engine

Code

public function get($offset) {
  try {
    return $this
      ->offsetGet($offset);
  } catch (\OutOfBoundsException $e) {
    throw new OutOfBoundsException();
  }
}