Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstraintViolationBuilderInterface.php

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\Violation

Code

public function setParameter(string $key, string $value) : static;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal