You are here

public function ExecutionContextInterface::getMetadataFactory in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/ExecutionContextInterface.php \Symfony\Component\Validator\ExecutionContextInterface::getMetadataFactory()

Returns the used metadata factory.

Return value

MetadataFactoryInterface The metadata factory.

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.

3 methods override ExecutionContextInterface::getMetadataFactory()
ExecutionContext::getMetadataFactory in vendor/symfony/validator/ExecutionContext.php
Returns the used metadata factory.
ExecutionContext::getMetadataFactory in vendor/symfony/validator/Context/ExecutionContext.php
Returns the used metadata factory.
ExecutionContext::getMetadataFactory in core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php
Returns the used metadata factory.

File

vendor/symfony/validator/ExecutionContextInterface.php, line 256

Class

ExecutionContextInterface
Stores the validator's state during validation.

Namespace

Symfony\Component\Validator

Code

public function getMetadataFactory();