function ConstraintViolationBuilder::__construct

Same name in this branch
  1. 11.x core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
  2. 8.9.x core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
  3. 10 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
  4. 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\Validation

Code

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.