public function EntityConstraintViolationList::set in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php \Drupal\Core\Entity\EntityConstraintViolationList::set()
File
- core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationList.php, line 209
Class
- EntityConstraintViolationList
- Implements an entity constraint violation list.
Namespace
Drupal\Core\EntityCode
public function set($offset, ConstraintViolationInterface $violation) {
parent::set($offset, $violation);
$this->violationOffsetsByField = NULL;
$this->entityViolationOffsets = NULL;
}