Skip to main content
Version: 2.0.0-alpha

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 Object

Parameters

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

Returns

EntityCollection | undefined

Defined in

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