public function ExecutionContextFactory::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Context/ExecutionContextFactory.php \Symfony\Component\Validator\Context\ExecutionContextFactory::__construct()
- 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php \Drupal\Core\TypedData\Validation\ExecutionContextFactory::__construct()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php \Drupal\Core\TypedData\Validation\ExecutionContextFactory::__construct()
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 41 - Contains \Drupal\Core\TypedData\Validation\ExecutionContextFactory.
Class
- ExecutionContextFactory
- Defines an execution factory for the Typed Data validator.
Namespace
Drupal\Core\TypedData\ValidationCode
public function __construct(TranslatorInterface $translator, $translationDomain = null) {
$this->translator = $translator;
$this->translationDomain = $translationDomain;
}