Skip to main content
Version: 3.0.0-beta

Function: getCollectionByPathOrId()

getCollectionByPathOrId(pathOrId, collections): EntityCollection | undefined

Find the corresponding view at any depth for a given path. Note that path or segments of the paths can be collection aliases.

Parameters​

• pathOrId: string

• collections: EntityCollection<any, any>[]

Returns​

EntityCollection | undefined

Defined in​

packages/firecms_core/src/util/navigation_utils.ts:66

Sign up to our newsletter to get the latest news and updates. No spam!