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 9769418 commit 4c2072aCopy full SHA for 4c2072a
app/code/Magento/BundleGraphQl/Model/BundleProductTypeResolver.php
@@ -15,13 +15,15 @@
15
*/
16
class BundleProductTypeResolver implements TypeResolverInterface
17
{
18
+ const BUNDLE_PRODUCT = 'BundleProduct';
19
+
20
/**
21
* {@inheritdoc}
22
23
public function resolveType(array $data) : string
24
25
if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
- return 'BundleProduct';
26
+ return self::BUNDLE_PRODUCT;
27
}
28
return '';
29
0 commit comments