ConstraintViolationBuilder::setInvalidValue

public ConstraintViolationBuilder::setInvalidValue($invalidValue)

Sets the invalid value that caused this violation.

Parameters

mixed $invalidValue The invalid value:

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::setInvalidValue

File

core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 176

Class

ConstraintViolationBuilder
Defines a constraint violation builder for the Typed Data validator.

Namespace

Drupal\Core\TypedData\Validation

Code

public function setInvalidValue($invalidValue) 
 {
  $this->invalidValue = $invalidValue;

  return $this;
}
doc_Drupal
2016-10-29 08:56:12
Comments
Leave a Comment

Please login to continue.