public function ConstraintViolationInterface::getInvalidValue

Returns the value that caused the violation.

@api

Return value

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

1 method overrides ConstraintViolationInterface::getInvalidValue()
ConstraintViolation::getInvalidValue in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolation.php
Returns the value that caused the violation.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationInterface.php, line 128

Class

ConstraintViolationInterface
A violation of a constraint that happened during validation.

Namespace

Symfony\Component\Validator

Code

public function getInvalidValue();