public function ExecutionContext::getMetadata in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getMetadata()
- 8.0 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::getMetadata()
- 8.0 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::getMetadata()
Same name and namespace in other branches
- 8 vendor/symfony/validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getMetadata()
Returns the metadata for the currently validated value.
With the core implementation, this method returns a {@link Mapping\ClassMetadata} instance if the current value is an object, a {@link Mapping\PropertyMetadata} instance if the current value is the value of a property and a {@link Mapping\GetterMetadata} instance if the validated value is the result of a getter method.
If the validated value is neither of these, for example if the validator has been called with a plain value and constraint, this method returns null.
Return value
MetadataInterface|null The metadata of the currently validated value.
Overrides ExecutionContextInterface::getMetadata
File
- vendor/
symfony/ validator/ ExecutionContext.php, line 207
Class
- ExecutionContext
- Default implementation of {@link ExecutionContextInterface}.
Namespace
Symfony\Component\ValidatorCode
public function getMetadata() {
return $this->metadata;
}