public function RecursiveContextualValidator::getViolations

public RecursiveContextualValidator::getViolations()

Returns the violations that have been generated so far in the context of the validator.

Return value

ConstraintViolationListInterface The constraint violations

Overrides ContextualValidatorInterface::getViolations

File

core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 192

Class

RecursiveContextualValidator
Defines a recursive contextual validator for Typed Data.

Namespace

Drupal\Core\TypedData\Validation

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Validation!RecursiveContextualValidator.php/function/RecursiveContextualValidator::getViolations/8.1.x