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

Breadcrumb

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

function ConstraintViolationList::offsetSet

File

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

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function offsetSet(mixed $offset, mixed $violation) : void {
    if (null === $offset) {
        $this->add($violation);
    }
    else {
        $this->set($offset, $violation);
    }
}
RSS feed
Powered by Drupal