public function ConstraintViolationBuilder::setParameters in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::setParameters()
- 8 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::setParameters()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::setParameters()
Sets all parameters to be inserted into the violation message.
Parameters
array $parameters An array with the parameter names as keys and: the values to be inserted in their place as values
Return value
ConstraintViolationBuilderInterface This builder
Overrides ConstraintViolationBuilderInterface::setParameters
File
- vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilder.php, line 128
Class
- ConstraintViolationBuilder
- Default implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function setParameters(array $parameters) {
$this->parameters = $parameters;
return $this;
}