Reflects changes from a site model's collections to the legacy property. This is a needed stop-gap since old search page will coexist for a time with the new workspaces UI and the old search page (among others) still rely on the searchCategories construct.

  • reflectCollectionsToSearchCategories(model: IModel) : IModel


Parameter Type Default Notes
model Required IModel

a site item model


a model with the catalog collections and search categories in sync

Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in common/src/sites/_internal/reflectCollectionsToSearchCategories.ts:16