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

Breadcrumb

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

function ConstraintViolationListInterface::set

Sets a violation at a given offset.

Parameters

int $offset The violation offset:

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

File

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

Class

ConstraintViolationListInterface
A list of constraint violations.

Namespace

Symfony\Component\Validator

Code

public function set(int $offset, ConstraintViolationInterface $violation) : void;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal