public function ConstraintViolationBuilderInterface::setCause in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface::setCause()
Sets the cause of the violation.
Parameters
mixed $cause The cause of the violation:
Return value
ConstraintViolationBuilderInterface This builder
3 methods override ConstraintViolationBuilderInterface::setCause()
- ConstraintViolationBuilder::setCause in vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilder.php - Sets the cause of the violation.
- ConstraintViolationBuilder::setCause in core/
lib/ Drupal/ Core/ TypedData/ Validation/ ConstraintViolationBuilder.php - Sets the cause of the violation.
- LegacyConstraintViolationBuilder::setCause in vendor/
symfony/ validator/ Violation/ LegacyConstraintViolationBuilder.php - Sets the cause of the violation.
File
- vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilderInterface.php, line 110
Class
- ConstraintViolationBuilderInterface
- Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.
Namespace
Symfony\Component\Validator\ViolationCode
public function setCause($cause);