function ExecutionContext::__construct
Same name in this branch
- 11.x core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::__construct()
- 8.9.x core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::__construct()
- 10 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::__construct()
- 10 core/lib/Drupal/Core/Validation/ExecutionContext.php \Drupal\Core\Validation\ExecutionContext::__construct()
Creates a new ExecutionContext.
@internal Called by \Drupal\Core\Validation\ExecutionContextFactory. Should not be used in user code.
Parameters
\Symfony\Component\Validator\Validator\ValidatorInterface $validator: The validator.
mixed $root: The root.
\Drupal\Core\Validation\TranslatorInterface $translator: The translator.
string|null $translationDomain: (optional) The translation domain.
1 call to ExecutionContext::__construct()
- ExecutionContext::__construct in core/
lib/ Drupal/ Core/ TypedData/ Validation/ ExecutionContext.php - Creates a new ExecutionContext.
1 method overrides ExecutionContext::__construct()
- ExecutionContext::__construct in core/
lib/ Drupal/ Core/ TypedData/ Validation/ ExecutionContext.php - Creates a new ExecutionContext.
File
-
core/
lib/ Drupal/ Core/ Validation/ ExecutionContext.php, line 85
Class
- ExecutionContext
- Defines an execution context class.
Namespace
Drupal\Core\ValidationCode
public function __construct(ValidatorInterface $validator, mixed $root, TranslatorInterface $translator, ?string $translationDomain = NULL) {
$this->violations = new ConstraintViolationList();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.