You are here

public function MetadataInterface::accept in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/MetadataInterface.php \Symfony\Component\Validator\MetadataInterface::accept()

Implementation of the Visitor design pattern.

Calls {@link ValidationVisitorInterface::visit} and then forwards the <tt>accept()</tt>-call to all property metadata instances.

Parameters

ValidationVisitorInterface $visitor The visitor implementing the validation logic:

mixed $value The value to validate:

string|string[] $group The validation group to validate in:

string $propertyPath The current property path in the validation graph:

Deprecated

since version 2.5, to be removed in 3.0.

2 methods override MetadataInterface::accept()
GenericMetadata::accept in vendor/symfony/validator/Mapping/GenericMetadata.php
Exists for compatibility with the deprecated {@link Symfony\Component\Validator\MetadataInterface}.
TypedDataMetadata::accept in core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
Implementation of the Visitor design pattern.

File

vendor/symfony/validator/MetadataInterface.php, line 63

Class

MetadataInterface
A container for validation metadata.

Namespace

Symfony\Component\Validator

Code

public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath);