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

Breadcrumb

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

function ConstraintViolationList::addAll

Overrides ConstraintViolationListInterface::addAll

File

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

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function addAll(ConstraintViolationListInterface $otherList) : void {
    foreach ($otherList as $violation) {
        $this->violations[] = $violation;
    }
}
RSS feed
Powered by Drupal