ExecutionContextFactory::__construct

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;
}
doc_Drupal
2016-10-29 09:09:33
Comments
Leave a Comment

Please login to continue.