function ConstraintViolationBuilder::__construct
Same name in this branch
- 11.x core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
- 8.9.x core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
- 10 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
- 10 core/lib/Drupal/Core/Validation/ConstraintViolationBuilder.php \Drupal\Core\Validation\ConstraintViolationBuilder::__construct()
Constructs a new ConstraintViolationBuilder instance.
Parameters
\Symfony\Component\Validator\ConstraintViolationList $violations: The violation list.
\Symfony\Component\Validator\Constraint $constraint: The constraint.
string $message: The message.
array $parameters: The message parameters.
mixed $root: The root.
string $propertyPath: The property string.
mixed $invalidValue: The invalid value.
\Drupal\Core\Validation\TranslatorInterface $translator: The translator.
string|false|null $translationDomain: (optional) The translation domain.
1 method overrides ConstraintViolationBuilder::__construct()
- ConstraintViolationBuilder::__construct in core/
lib/ Drupal/ Core/ TypedData/ Validation/ ConstraintViolationBuilder.php - Constructs a new ConstraintViolationBuilder instance.
File
-
core/
lib/ Drupal/ Core/ Validation/ ConstraintViolationBuilder.php, line 59
Class
- ConstraintViolationBuilder
- A constraint violation builder for the basic Symfony validator.
Namespace
Drupal\Core\ValidationCode
public function __construct(ConstraintViolationList $violations, Constraint $constraint, string $message, array $parameters, mixed $root, string $propertyPath, mixed $invalidValue, TranslatorInterface $translator, string|false|null $translationDomain = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.