public function ConstraintViolationList::remove

Removes a violation at a given offset.

@api

Parameters

integer $offset The offset to remove.:

Overrides ConstraintViolationListInterface::remove

1 call to ConstraintViolationList::remove()
ConstraintViolationList::offsetUnset in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php, line 103

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function remove($offset) {
  unset($this->violations[$offset]);
}