applyDefaultCollectionMigration
In-Memory migration that adds default collections to site models that have the
new catalog structure. These default collections will have the same names and
display order as found in site.data.values.searchCategories
This migration simplifies display logic, as consuming components no longer
have to merge catalog.collections with the default collection definitions.
This migration also lays the foundation for customization, since editors will be able to modify these persisted default objects. For example, editors can change the default labels, display order, or mark a default as "hidden" so the public can't see it.
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| model Required | IModel |
site model to migrate |
Returns
a migrated model with default IHubCollection objects added
to the catalog
Function defined in packages/common/src/sites/_internal/applyDefaultCollectionMigration.ts:26