SortingHelper

Generate sorting values from plugin configuration.

Namespace

IO\Services\ItemSearch\Helper

Methods
public static getSorting($sortingConfig = null, $isCategory = true):array

Get sorting values from plugin configuration

Parameters

Type

Name

Description

string

$sortingConfig

The configuration value from plugin

bool

$isCategory

Get default sorting configuration for category or for search

public static getCategorySorting($sortingConfig = null):array

Get sorting values for categories from config

Parameters

Type

Name

Description

string

$sortingConfig

The configuration value

public static getSearchSorting($sortingConfig = null):array

Get sorting values for searches from config

Parameters

Type

Name

Description

string

$sortingConfig

The configuration value

public static getUsedItemName():string
public static splitPathAndOrder($sorting)
Parameters

Type

Name

Description

``

$sorting