tridion-sites-extensions-api-docs

Home > @tridion-sites/models > BlueprintReadonlyGraph > ancestorsByPriority

BlueprintReadonlyGraph.ancestorsByPriority() method

Get node ancestors by priority We are going bottom-to-top and by parent priority. Node grandparents are processed in order of priority of node’s parents. This allows to handle complex use-cases with multiple parents on the same distance in different blueprint branches

Signature:

ancestorsByPriority(nodeId: string): Iterable<BlueprintReadonlyParentLink<TData>>;

Parameters

Parameter Type Description
nodeId string  

Returns:

Iterable<BlueprintReadonlyParentLink<TData>>