class ExecutionContextFactory
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Validation/ExecutionContextFactory.php \Drupal\Core\Validation\ExecutionContextFactory
Creates new {@link ExecutionContext} instances.
@author Bernhard Schussek <bschussek@gmail.com>
@internal
Hierarchy
- class \Symfony\Component\Validator\Context\ExecutionContextFactory implements \Symfony\Component\Validator\Context\ExecutionContextFactoryInterface
Expanded class hierarchy of ExecutionContextFactory
1 file declares its use of ExecutionContextFactory
- ValidatorBuilder.php in vendor/
symfony/ validator/ ValidatorBuilder.php
File
-
vendor/
symfony/ validator/ Context/ ExecutionContextFactory.php, line 24
Namespace
Symfony\Component\Validator\ContextView source
class ExecutionContextFactory implements ExecutionContextFactoryInterface {
public function __construct(TranslatorInterface $translator, ?string $translationDomain = null) {
}
public function createContext(ValidatorInterface $validator, mixed $root) : ExecutionContextInterface {
return new ExecutionContext($validator, $root, $this->translator, $this->translationDomain);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ExecutionContextFactory::createContext | public | function | Creates a new execution context. | Overrides ExecutionContextFactoryInterface::createContext |
ExecutionContextFactory::__construct | public | function |