public ConstraintViolationBuilder::setParameters(array $parameters)
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
- core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 156
Class
- ConstraintViolationBuilder
- Defines a constraint violation builder for the Typed Data validator.
Namespace
Drupal\Core\TypedData\Validation
Code
public function setParameters(array $parameters) { $this->parameters = $parameters; return $this; }
Please login to continue.