Skip to content

Commit 9b5f3b4

Browse files
author
Jakub Galiński
committed
Add support for getting Table select options attribute
1 parent e387f3e commit 9b5f3b4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Api/AttributeApi.php

+14
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ public function get(string $code): array
3939
return $this->resourceClient->getResource(static::ATTRIBUTE_URI, [$code]);
4040
}
4141

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+
4256
/**
4357
* {@inheritdoc}
4458
*/

0 commit comments

Comments
 (0)