public function ConstraintViolationList::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/ConstraintViolationList.php \Symfony\Component\Validator\ConstraintViolationList::__construct()
Creates a new constraint violation list.
Parameters
ConstraintViolationInterface[] $violations The constraint violations to add to the list:
1 call to ConstraintViolationList::__construct()
- EntityConstraintViolationList::__construct in core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationList.php
1 method overrides ConstraintViolationList::__construct()
- EntityConstraintViolationList::__construct in core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationList.php
File
- vendor/
symfony/ validator/ ConstraintViolationList.php, line 31
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\ValidatorCode
public function __construct(array $violations = array()) {
foreach ($violations as $violation) {
$this
->add($violation);
}
}