public function ConstraintViolationListInterface::add

Adds a constraint violation to this list.

@api

Parameters

ConstraintViolationInterface $violation The violation to add.:

1 method overrides ConstraintViolationListInterface::add()
ConstraintViolationList::add in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php
Adds a constraint violation to this list.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationListInterface.php, line 30

Class

ConstraintViolationListInterface
A list of constraint violations.

Namespace

Symfony\Component\Validator

Code

public function add(ConstraintViolationInterface $violation);