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

Breadcrumb

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

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\Context
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal