function RecursiveValidatorFactory::createValidator
Same name in other branches
- 10 core/modules/file/src/Validation/RecursiveValidatorFactory.php \Drupal\file\Validation\RecursiveValidatorFactory::createValidator()
Creates a new RecursiveValidator.
Return value
\Drupal\Core\TypedData\Validation\RecursiveValidator The validator.
File
-
core/
modules/ file/ src/ Validation/ RecursiveValidatorFactory.php, line 36
Class
- RecursiveValidatorFactory
- Factory for creating a new RecursiveValidator.
Namespace
Drupal\file\ValidationCode
public function createValidator() : RecursiveValidator {
return new RecursiveValidator(new ExecutionContextFactory(new DrupalTranslator()), new ConstraintValidatorFactory($this->classResolver), $this->typedDataManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.