Skip to content

Commit 336eb9b

Browse files
committed
Add query parameters to get method in AttribiteApi Class what will allow to use i.e. with_table_select_option parameter for specify attribute
1 parent 9b5f3b4 commit 336eb9b

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/Api/AttributeApi.php

+2-16
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,9 @@ public function __construct(
3434
/**
3535
* {@inheritdoc}
3636
*/
37-
public function get(string $code): array
37+
public function get(string $code, array $queryParameters = []): array
3838
{
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]);
39+
return $this->resourceClient->getResource(static::ATTRIBUTE_URI, [$code], $queryParameters);
5440
}
5541

5642
/**

0 commit comments

Comments
 (0)