function ConstraintViolationBuilderInterface::setParameter
Sets a parameter to be inserted into the violation message.
Parameters
string $key The name of the parameter:
string $value The value to be inserted in the parameter's place:
Return value
$this
2 methods override ConstraintViolationBuilderInterface::setParameter()
- ConstraintViolationBuilder::setParameter in core/
lib/ Drupal/ Core/ Validation/ ConstraintViolationBuilder.php - Sets a parameter to be inserted into the violation message.
- ConstraintViolationBuilder::setParameter in vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilder.php - Sets a parameter to be inserted into the violation message.
File
-
vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilderInterface.php, line 46
Class
- ConstraintViolationBuilderInterface
- Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.
Namespace
Symfony\Component\Validator\ViolationCode
public function setParameter(string $key, string $value) : static;