You are here

public function EntityConstraintViolationList::remove in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php \Drupal\Core\Entity\EntityConstraintViolationList::remove()

Removes a violation at a given offset.

Parameters

int $offset The offset to remove.:

Overrides ConstraintViolationList::remove

1 call to EntityConstraintViolationList::remove()
EntityConstraintViolationList::filterByFields in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Filters this violation list by the given fields.

File

core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 200
Contains \Drupal\Core\Entity\EntityConstraintViolationList.

Class

EntityConstraintViolationList
Implements an entity constraint violation list.

Namespace

Drupal\Core\Entity

Code

public function remove($offset) {
  parent::remove($offset);
  $this->violationOffsetsByField = NULL;
  $this->entityViolationOffsets = NULL;
}