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 d6dad52 commit fb29ecfCopy full SHA for fb29ecf
app/code/Magento/ConfigurableProductGraphQl/Model/ConfigurableProductTypeResolver.php
@@ -15,13 +15,19 @@
15
*/
16
class ConfigurableProductTypeResolver implements TypeResolverInterface
17
{
18
+ /**
19
+ * Configurable product type resolver code
20
+ */
21
+ const TYPE_RESOLVER = 'ConfigurableProduct';
22
+
23
/**
24
* {@inheritdoc}
25
26
public function resolveType(array $data) : string
27
28
if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
- return 'ConfigurableProduct';
29
+ return self::TYPE_RESOLVER;
30
31
}
32
return '';
33
0 commit comments