getCollectionByPathOrId
@firecms/core / getCollectionByPathOrId
Function: getCollectionByPathOrId()
Section titled “Function: 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.
Parameters
Section titled “Parameters”pathOrId
Section titled “pathOrId”string
collections
Section titled “collections”EntityCollection<any, any>[]
Returns
Section titled “Returns”EntityCollection<any, any> | undefined