public function 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\ValidationCode
public function setParameter($key, $value) { $this->parameters[$key] = $value; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Validation!ConstraintViolationBuilder.php/function/ConstraintViolationBuilder::setParameter/8.1.x