searchCategoriesToCollections

Function

Convert searchCategories to collections. If no searchCategories are provided, the default collections will be returned.

Parameters

Parameter Type Default Notes
searchCategories Optional SearchCategories[]

searchCategories from site model (data.values.searchCategories)

Returns

IHubCollections that respect the searchCategories configuration

any[]

Function defined in common/src/sites/searchCategoriesToCollections.ts:13