Skip to main content
Version: 2.0.0

Function: getCollectionByPathOrAlias

getCollectionByPathOrAlias<M>(pathOrAlias, 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.

Type parameters

NameType
Mextends Record<string, any>

Parameters

NameType
pathOrAliasstring
collectionsEntityCollection<any, string, User>[]

Returns

EntityCollection | undefined

Defined in

lib/src/core/util/navigation_utils.ts:66

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!