You are here

public function ConstraintViolationList::remove in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolationList.php \Symfony\Component\Validator\ConstraintViolationList::remove()

Removes a violation at a given offset.

Parameters

int $offset The offset to remove.:

Overrides ConstraintViolationListInterface::remove

2 calls to ConstraintViolationList::remove()
ConstraintViolationList::offsetUnset in vendor/symfony/validator/ConstraintViolationList.php
EntityConstraintViolationList::remove in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Removes a violation at a given offset.
1 method overrides ConstraintViolationList::remove()
EntityConstraintViolationList::remove in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Removes a violation at a given offset.

File

vendor/symfony/validator/ConstraintViolationList.php, line 103

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

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