Skip to content

Commit 4c2072a

Browse files
author
Govind Sharma
authored
Update BundleProductTypeResolver.php
1 parent 9769418 commit 4c2072a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/BundleGraphQl/Model/BundleProductTypeResolver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
*/
1616
class BundleProductTypeResolver implements TypeResolverInterface
1717
{
18+
const BUNDLE_PRODUCT = 'BundleProduct';
19+
1820
/**
1921
* {@inheritdoc}
2022
*/
2123
public function resolveType(array $data) : string
2224
{
2325
if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
24-
return 'BundleProduct';
26+
return self::BUNDLE_PRODUCT;
2527
}
2628
return '';
2729
}

0 commit comments

Comments
 (0)