class RecursiveValidatorFactory
Same name in other branches
- 10 core/modules/file/src/Validation/RecursiveValidatorFactory.php \Drupal\file\Validation\RecursiveValidatorFactory
Factory for creating a new RecursiveValidator.
Hierarchy
- class \Drupal\file\Validation\RecursiveValidatorFactory
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
-
core/
modules/ file/ src/ Validation/ RecursiveValidatorFactory.php, line 15
Namespace
Drupal\file\ValidationView 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.