public function RecursiveValidator::getMetadataFor in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::getMetadataFor()
- 8 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php \Drupal\Core\TypedData\Validation\RecursiveValidator::getMetadataFor()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::getMetadataFor()
Returns the metadata for the given value.
Parameters
mixed $value Some value:
Return value
MetadataInterface The metadata for the value
Throws
Exception\NoSuchMetadataException If no metadata exists for the given value
Overrides MetadataFactoryInterface::getMetadataFor
File
- vendor/
symfony/ validator/ Validator/ RecursiveValidator.php, line 102
Class
- RecursiveValidator
- Recursive implementation of {@link ValidatorInterface}.
Namespace
Symfony\Component\Validator\ValidatorCode
public function getMetadataFor($object) {
return $this->metadataFactory
->getMetadataFor($object);
}