You are here

public function TypedDataMetadata::accept in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php \Drupal\Core\TypedData\Validation\TypedDataMetadata::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:

Overrides MetadataInterface::accept

Deprecated

since version 2.5, to be removed in 3.0.

File

core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 44
Contains \Drupal\Core\TypedData\Validation\TypedDataMetadata.

Class

TypedDataMetadata
Validator metadata for typed data objects.

Namespace

Drupal\Core\TypedData\Validation

Code

public function accept(ValidationVisitorInterface $visitor, $typed_data, $group, $propertyPath) {
  throw new BadMethodCallException('Not supported.');
}