You are here

public function ExecutionContextFactoryInterface::createContext in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Context/ExecutionContextFactoryInterface.php \Symfony\Component\Validator\Context\ExecutionContextFactoryInterface::createContext()

Creates a new execution context.

Parameters

ValidatorInterface $validator The validator:

mixed $root The root value of the validated: object graph

Return value

ExecutionContextInterface The new execution context

3 methods override ExecutionContextFactoryInterface::createContext()
ExecutionContextFactory::createContext in vendor/symfony/validator/Context/ExecutionContextFactory.php
Creates a new execution context.
ExecutionContextFactory::createContext in core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
Creates a new execution context.
LegacyExecutionContextFactory::createContext in vendor/symfony/validator/Context/LegacyExecutionContextFactory.php
Creates a new execution context.

File

vendor/symfony/validator/Context/ExecutionContextFactoryInterface.php, line 37

Class

ExecutionContextFactoryInterface
Creates instances of {@link ExecutionContextInterface}.

Namespace

Symfony\Component\Validator\Context

Code

public function createContext(ValidatorInterface $validator, $root);