Returns the violations generated by the validator so far.
@api
ConstraintViolationListInterface The constraint violation list.
Overrides ExecutionContextInterface::getViolations
public function getViolations() {
return $this->globalContext
->getViolations();
}