public function ConstraintViolationBuilder::setInvalidValue in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::setInvalidValue()
- 8 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::setInvalidValue()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::setInvalidValue()
Sets the invalid value that caused this violation.
Parameters
mixed $invalidValue The invalid value:
Return value
ConstraintViolationBuilderInterface This builder
Overrides ConstraintViolationBuilderInterface::setInvalidValue
File
- vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilder.php, line 148
Class
- ConstraintViolationBuilder
- Default implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function setInvalidValue($invalidValue) {
$this->invalidValue = $invalidValue;
return $this;
}