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

Breadcrumb

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

function ConstraintViolationBuilderInterface::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

$this

2 methods override ConstraintViolationBuilderInterface::setParameters()
ConstraintViolationBuilder::setParameters in core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php
Sets all parameters to be inserted into the violation message.
ConstraintViolationBuilder::setParameters in vendor/symfony/validator/Violation/ConstraintViolationBuilder.php
Sets all parameters to be inserted into the violation message.

File

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

Class

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

Namespace

Symfony\Component\Validator\Violation

Code

public function setParameters(array $parameters) : static;

API Navigation

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