You are here

public function ExecutionContext::getViolations in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getViolations()
  2. 7 lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::getViolations()

Returns the violations generated by the validator so far.

@api

Return value

ConstraintViolationListInterface The constraint violation list.

Overrides ExecutionContextInterface::getViolations

File

lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php, line 141

Class

ExecutionContext
Default implementation of {@link ExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

public function getViolations() {
  return $this->globalContext
    ->getViolations();
}