We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2072a commit 274c885Copy full SHA for 274c885
app/code/Magento/DownloadableGraphQl/Model/DownloadableProductTypeResolver.php
@@ -15,13 +15,14 @@
15
*/
16
class DownloadableProductTypeResolver implements TypeResolverInterface
17
{
18
+ const DOWNLOADABLE_PRODUCT = 'DownloadableProduct';
19
/**
20
* {@inheritdoc}
21
22
public function resolveType(array $data) : string
23
24
if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_DOWNLOADABLE) {
- return 'DownloadableProduct';
25
+ return self::DOWNLOADABLE_PRODUCT;
26
}
27
return '';
28
0 commit comments