function ConstraintViolationBuilder::setParameters

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::setParameters()
  2. 8.9.x core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::setParameters()
  3. 11.x core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php \Drupal\Core\Validation\ConstraintViolationBuilder::setParameters()

File

core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php, line 95

Class

ConstraintViolationBuilder
A constraint violation builder for the basic Symfony validator.

Namespace

Drupal\Core\Validation

Code

public function setParameters(array $parameters) : static {
    $this->parameters = $parameters;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.