You are here

public function RecursiveValidator::getMetadataFor in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::getMetadataFor()
  2. 8 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php \Drupal\Core\TypedData\Validation\RecursiveValidator::getMetadataFor()
Same name and namespace in other branches
  1. 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\Validator

Code

public function getMetadataFor($object) {
  return $this->metadataFactory
    ->getMetadataFor($object);
}