public function ConstraintViolation::getInvalidValue

Returns the value that caused the violation.

@api

Return value

mixed The invalid value that caused the validated constraint to fail.

Overrides ConstraintViolationInterface::getInvalidValue

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolation.php, line 164

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

public function getInvalidValue() {
  return $this->invalidValue;
}