Skip to content

getCollectionByPathOrId

@firecms/core


@firecms/core / getCollectionByPathOrId

getCollectionByPathOrId(pathOrId, collections): EntityCollection<any, any> | undefined

Defined in: util/navigation_utils.ts:127

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

string

EntityCollection<any, any>[]

EntityCollection<any, any> | undefined