URLFilter

Namespace

IO\Extensions\Filters

Extends
Properties
Type Name Description

ItemService

$itemService

Methods
public __construct($itemService)

URLFilter constructor.

Parameters

Type

Name

Description

ItemService

$itemService

public getFilters():array

Return the available filter methods

public buildItemURL($itemData, $withVariationId = true):string

Build the URL for the item by item ID or variation ID

Parameters

Type

Name

Description

Filters

$itemData

bool

$withVariationId

public buildVariationURL($variationId):string
Deprecated!

This method will not be supported in the future. Please refrain from using it as soon as possible.

Parameters

Type

Name

Description

int

$variationId