public function 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.:

3 methods override MetadataInterface::accept()
ClassMetadata::accept in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Implementation of the Visitor design pattern.
MemberMetadata::accept in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/MemberMetadata.php
Implementation of the Visitor design pattern.
Metadata::accept in drupal/core/lib/Drupal/Core/TypedData/Validation/Metadata.php
Implements MetadataInterface::accept().

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/MetadataInterface.php, line 58

Class

MetadataInterface
A container for validation metadata.

Namespace

Symfony\Component\Validator

Code

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