list_filter_from_master_sku_id
Filter array by master sku id
Example
1
2
3
4
| {{ $source | list_filter_from_master_sku_id: 'masterSkuId', 'attribute', 'excludeMasterLots', 'masterLotStatusPath' }} => [
'key1' => 'value1',
'key2' => 'value2'
]
|
| Type |
Parameter |
Description |
Required |
| array |
source |
The list to filter. Comes before the | sign. |
Required |
| string |
masterSkuId |
The master sku id to filter for |
|
| string |
attribute |
The attribute to filter by, defaults to ‘sku_id’ |
|
| bool |
excludeMasterLots |
Whether to exclude master lots, defaults to true |
|
| string |
masterLotStatusPath |
The path to the master lot status, defaults to ‘lot.status’ |
|
Output
| Type |
Description |
| array |
The filtered list |