ConstraintViolationBuilder::setParameter

public ConstraintViolationBuilder::setParameter($key, $value)

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

Overrides ConstraintViolationBuilderInterface::setParameter

File

core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 146

Class

ConstraintViolationBuilder
Defines a constraint violation builder for the Typed Data validator.

Namespace

Drupal\Core\TypedData\Validation

Code

public function setParameter($key, $value) 
 {
  $this->parameters[$key] = $value;

  return $this;
}
doc_Drupal
2016-10-29 08:56:12
Comments
Leave a Comment

Please login to continue.