We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e387f3e commit 9b5f3b4Copy full SHA for 9b5f3b4
src/Api/AttributeApi.php
@@ -39,6 +39,20 @@ public function get(string $code): array
39
return $this->resourceClient->getResource(static::ATTRIBUTE_URI, [$code]);
40
}
41
42
+ /**
43
+ * Get attribute with table select options.
44
+ * This method is not part of the official API.
45
+ * It is used to get the table select options of an attribute.
46
+ *
47
+ * @param string $code
48
49
+ * @return array
50
+ */
51
+ public function getWithTableSelectOptions(string $code): array
52
+ {
53
+ return $this->resourceClient->getResource(static::ATTRIBUTE_URI, [$code], ['with_table_select_options' => true]);
54
+ }
55
+
56
/**
57
* {@inheritdoc}
58
*/
0 commit comments