On this page
public function ExecutionContextFactory::createContext
public ExecutionContextFactory::createContext(ValidatorInterface $validator, $root)
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
Overrides ExecutionContextFactoryInterface::createContext
File
- core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php, line 45
Class
- ExecutionContextFactory
- Defines an execution factory for the Typed Data validator.
Namespace
Drupal\Core\TypedData\ValidationCode
public function createContext(ValidatorInterface $validator, $root)
{
return new ExecutionContext(
$validator,
$root,
$this->translator,
$this->translationDomain
);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!Validation!ExecutionContextFactory.php/function/ExecutionContextFactory::createContext/8.1.x