function ExecutionContextFactory::__construct
Constructs a new ExecutionContextFactory instance.
Parameters
\Drupal\Core\Validation\TranslatorInterface $translator: The translator instance.
string|null $translationDomain: (optional) The translation domain.
File
-
core/
lib/ Drupal/ Core/ Validation/ ExecutionContextFactory.php, line 24
Class
- ExecutionContextFactory
- Defines an execution factory for the Symfony validator.
Namespace
Drupal\Core\ValidationCode
public function __construct(protected TranslatorInterface $translator, protected ?string $translationDomain = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.