public RecursiveValidator::getMetadataFor($typed_data)
Parameters
\Drupal\Core\TypedData\TypedDataInterface $typed_data: A typed data object containing the value to validate.
File
- core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php, line 71
Class
- RecursiveValidator
- Defines a recursive validator for Typed Data.
Namespace
Drupal\Core\TypedData\Validation
Code
public function getMetadataFor($typed_data) { if (!$typed_data instanceof TypedDataInterface) { throw new \InvalidArgumentException('The passed value must be a typed data object.'); } return new TypedDataMetadata($typed_data); }
Please login to continue.