You are here

public function ConstraintViolationBuilderInterface::setParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php \Symfony\Component\Validator\Violation\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

ConstraintViolationBuilderInterface This builder

3 methods override ConstraintViolationBuilderInterface::setParameter()
ConstraintViolationBuilder::setParameter in vendor/symfony/validator/Violation/ConstraintViolationBuilder.php
Sets a parameter to be inserted into the violation message.
ConstraintViolationBuilder::setParameter in core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php
Sets a parameter to be inserted into the violation message.
LegacyConstraintViolationBuilder::setParameter in vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php
Sets a parameter to be inserted into the violation message.

File

vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php, line 48

Class

ConstraintViolationBuilderInterface
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.

Namespace

Symfony\Component\Validator\Violation

Code

public function setParameter($key, $value);