You are here

public function ExecutionContext::getViolations in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getViolations()
  2. 8 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::getViolations()
  3. 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::getViolations()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getViolations()

Returns the violations generated by the validator so far.

Return value

ConstraintViolationListInterface The constraint violation list.

Overrides ExecutionContextInterface::getViolations

File

vendor/symfony/validator/ExecutionContext.php, line 143

Class

ExecutionContext
Default implementation of {@link ExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

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