Sets a violation at a given offset.
@api
Parameters
integer $offset The violation offset.:
ConstraintViolationInterface $violation The violation.:
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationListInterface.php, line 73
Class
- ConstraintViolationListInterface
- A list of constraint violations.
Namespace
Symfony\Component\Validator
Code
public function set($offset, ConstraintViolationInterface $violation);