public function ExecutionContext::getMetadataFactory in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getMetadataFactory()
- 8 vendor/symfony/validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::getMetadataFactory()
- 8 core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php \Drupal\Core\TypedData\Validation\ExecutionContext::getMetadataFactory()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getMetadataFactory()
Returns the used metadata factory.
Return value
MetadataFactoryInterface The metadata factory.
Overrides ExecutionContextInterface::getMetadataFactory
Deprecated
since version 2.5, to be removed in 3.0. Use {@link Context\ExecutionContextInterface::getValidator()} instead and call {@link Validator\ValidatorInterface::getMetadataFor()} or {@link Validator\ValidatorInterface::hasMetadataFor()} there.
File
- vendor/
symfony/ validator/ ExecutionContext.php, line 261
Class
- ExecutionContext
- Default implementation of {@link ExecutionContextInterface}.
Namespace
Symfony\Component\ValidatorCode
public function getMetadataFactory() {
return $this->globalContext
->getMetadataFactory();
}