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