function JsonSchemaTestTrait::supportedTypesDataProvider
Return value
array Supported types for which to test schema generation.
File
-
core/
modules/ serialization/ tests/ src/ Traits/ JsonSchemaTestTrait.php, line 108
Class
- JsonSchemaTestTrait
- Trait for testing JSON Schema validity and fit to sample data.
Namespace
Drupal\Tests\serialization\TraitsCode
public static function supportedTypesDataProvider() : array {
return array_map(fn($type) => [
$type,
], array_keys((new PrimitiveDataNormalizer())->getSupportedTypes(NULL)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.