Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExecutionContextFactory.php

function ExecutionContextFactory::createContext

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Validation/ExecutionContextFactory.php \Drupal\Core\Validation\ExecutionContextFactory::createContext()

Overrides ExecutionContextFactoryInterface::createContext

File

vendor/symfony/validator/Context/ExecutionContextFactory.php, line 32

Class

ExecutionContextFactory
Creates new {@link ExecutionContext} instances.

Namespace

Symfony\Component\Validator\Context

Code

public function createContext(ValidatorInterface $validator, mixed $root) : ExecutionContextInterface {
    return new ExecutionContext($validator, $root, $this->translator, $this->translationDomain);
}
RSS feed
Powered by Drupal