public TypedDataManager::getValidator()
Gets the validator for validating typed data.
\Symfony\Component\Validator\Validator\ValidatorInterface The validator object.
Overrides TypedDataManagerInterface::getValidator
public function getValidator() { if (!isset($this->validator)) { $this->validator = new RecursiveValidator( new ExecutionContextFactory(new DrupalTranslator()), new ConstraintValidatorFactory($this->classResolver), $this ); } return $this->validator; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!TypedDataManager.php/function/TypedDataManager::getValidator/8.1.x