public ExecutionContextFactory::__construct(TranslatorInterface $translator, $translationDomain = null)
Constructs a new ExecutionContextFactory instance.
Parameters
\Drupal\Core\Validation\TranslatorInterface $translator: The translator instance.
string $translationDomain: (optional) The translation domain.
File
- core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php, line 36
Class
- ExecutionContextFactory
- Defines an execution factory for the Typed Data validator.
Namespace
Drupal\Core\TypedData\Validation
Code
public function __construct(TranslatorInterface $translator, $translationDomain = null) { $this->translator = $translator; $this->translationDomain = $translationDomain; }
Please login to continue.