function BasicRecursiveValidatorFactory::createValidator
Same name in other branches
- 10 core/lib/Drupal/Core/Validation/BasicRecursiveValidatorFactory.php \Drupal\Core\Validation\BasicRecursiveValidatorFactory::createValidator()
Creates a new RecursiveValidator.
Return value
\Symfony\Component\Validator\Validator\RecursiveValidator The validator.
File
-
core/
lib/ Drupal/ Core/ Validation/ BasicRecursiveValidatorFactory.php, line 32
Class
- BasicRecursiveValidatorFactory
- A factory for creating Symfony recursive validators.
Namespace
Drupal\Core\ValidationCode
public function createValidator() : RecursiveValidator {
return new RecursiveValidator(new ExecutionContextFactory(new DrupalTranslator()), new LazyLoadingMetadataFactory(), new ConstraintValidatorFactory($this->classResolver));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.