Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstraintViolationListInterface.php

function ConstraintViolationListInterface::get

Returns the violation at a given offset.

Parameters

int $offset The offset of the violation:

Throws

OutOfBoundsException if the offset does not exist

1 method overrides ConstraintViolationListInterface::get()
ConstraintViolationList::get in vendor/symfony/validator/ConstraintViolationList.php
Returns the violation at a given offset.

File

vendor/symfony/validator/ConstraintViolationListInterface.php, line 43

Class

ConstraintViolationListInterface
A list of constraint violations.

Namespace

Symfony\Component\Validator

Code

public function get(int $offset) : ConstraintViolationInterface;
RSS feed
Powered by Drupal