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 274c885 commit 821c1abCopy full SHA for 821c1ab
app/code/Magento/GroupedProductGraphQl/Model/GroupedProductTypeResolver.php
@@ -14,13 +14,14 @@
14
*/
15
class GroupedProductTypeResolver implements TypeResolverInterface
16
{
17
+ const GROUPED_PRODUCT = 'GroupedProduct';
18
/**
19
* {@inheritdoc}
20
21
public function resolveType(array $data) : string
22
23
if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
- return 'GroupedProduct';
24
+ return self::GROUPED_PRODUCT;
25
}
26
return '';
27
0 commit comments