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

Breadcrumb

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

function ConstraintViolationList::__toString

Overrides ConstraintViolationListInterface::__toString

File

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

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function __toString() : string {
    $string = '';
    foreach ($this->violations as $violation) {
        $string .= $violation . "\n";
    }
    return $string;
}
RSS feed
Powered by Drupal