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

Breadcrumb

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

function ConstraintViolationList::set

Overrides ConstraintViolationListInterface::set

3 calls to ConstraintViolationList::set()
ConstraintViolationList::offsetSet in vendor/symfony/validator/ConstraintViolationList.php
EntityConstraintViolationList::set in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Sets a violation at a given offset.
EntityConstraintViolationList::set in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Sets a violation at a given offset.
1 method overrides ConstraintViolationList::set()
EntityConstraintViolationList::set in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Sets a violation at a given offset.

File

vendor/symfony/validator/ConstraintViolationList.php, line 87

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function set(int $offset, ConstraintViolationInterface $violation) : void {
    $this->violations[$offset] = $violation;
}
RSS feed
Powered by Drupal