function IntegrityViolationList::get
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\EngineCode
public function get($offset) {
try {
return $this->offsetGet($offset);
} catch (\OutOfBoundsException $e) {
throw new OutOfBoundsException();
}
}