Returns the violation at a given offset.
@api
Parameters
integer $offset The offset of the violation.:
Return value
ConstraintViolationInterface The violation.
Throws
\OutOfBoundsException If the offset does not exist.
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationListInterface.php, line 52
Class
- ConstraintViolationListInterface
- A list of constraint violations.
Namespace
Symfony\Component\Validator
Code
public function get($offset);