public EntityConstraintViolationList::add(ConstraintViolationInterface $violation)
Adds a constraint violation to this list.
Parameters
ConstraintViolationInterface $violation The violation to add.:
Overrides ConstraintViolationList::add
File
- core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 186
Class
- EntityConstraintViolationList
- Implements an entity constraint violation list.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 | public function add(ConstraintViolationInterface $violation ) { parent::add( $violation ); $this ->violationOffsetsByField = NULL; $this ->entityViolationOffsets = NULL; } |
Please login to continue.