interface ExecutionContextFactoryInterface
Creates instances of {@link ExecutionContextInterface}.
You can use a custom factory if you want to customize the execution context that is passed through the validation run.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\Context\ExecutionContextFactoryInterface
Expanded class hierarchy of ExecutionContextFactoryInterface
All classes that implement ExecutionContextFactoryInterface
3 files declare their use of ExecutionContextFactoryInterface
- ExecutionContextFactory.php in core/
lib/ Drupal/ Core/ Validation/ ExecutionContextFactory.php - RecursiveValidator.php in vendor/
symfony/ validator/ Validator/ RecursiveValidator.php - RecursiveValidator.php in core/
lib/ Drupal/ Core/ TypedData/ Validation/ RecursiveValidator.php
File
-
vendor/
symfony/ validator/ Context/ ExecutionContextFactoryInterface.php, line 24
Namespace
Symfony\Component\Validator\ContextView source
interface ExecutionContextFactoryInterface {
/**
* Creates a new execution context.
*
* @param mixed $root The root value of the validated
* object graph
*/
public function createContext(ValidatorInterface $validator, mixed $root) : ExecutionContextInterface;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ExecutionContextFactoryInterface::createContext | public | function | Creates a new execution context. | 2 |