class RecursiveValidatorFactory

Same name in other branches
  1. 10 core/modules/file/src/Validation/RecursiveValidatorFactory.php \Drupal\file\Validation\RecursiveValidatorFactory

Factory for creating a new RecursiveValidator.

Hierarchy

Expanded class hierarchy of RecursiveValidatorFactory

1 string reference to 'RecursiveValidatorFactory'
file.services.yml in core/modules/file/file.services.yml
core/modules/file/file.services.yml
1 service uses RecursiveValidatorFactory
file.recursive_validator_factory in core/modules/file/file.services.yml
Drupal\file\Validation\RecursiveValidatorFactory

File

core/modules/file/src/Validation/RecursiveValidatorFactory.php, line 15

Namespace

Drupal\file\Validation
View source
class RecursiveValidatorFactory {
    
    /**
     * Constructs a new RecursiveValidatorFactory.
     *
     * @param \Drupal\Core\DependencyInjection\ClassResolverInterface $classResolver
     *   The class resolver.
     * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typedDataManager
     *   The typed data manager.
     */
    public function __construct(ClassResolverInterface $classResolver, TypedDataManagerInterface $typedDataManager) {
    }
    
    /**
     * Creates a new RecursiveValidator.
     *
     * @return \Drupal\Core\TypedData\Validation\RecursiveValidator
     *   The validator.
     */
    public function createValidator() : RecursiveValidator {
        return new RecursiveValidator(new ExecutionContextFactory(new DrupalTranslator()), new ConstraintValidatorFactory($this->classResolver), $this->typedDataManager);
    }

}

Members

Title Sort descending Modifiers Object type Summary
RecursiveValidatorFactory::createValidator public function Creates a new RecursiveValidator.
RecursiveValidatorFactory::__construct public function Constructs a new RecursiveValidatorFactory.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.