processActionLinks

Function

Given an array of IHubActionLinks, the following util will "pre-process" the action links. This includes:

  1. For kind = "content": Fetching the content item, grabbing its site relative href, and transforming the link into an external action link that can be consumed in the UI

Note: we can add other pre-processing as necessary

Parameters

Parameter Type Default Notes

Available requestOptions

Property Type Notes
authentication Optional ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Promise<Array<Exclude<HubActionLinkIHubContentActionLink>>>
Property Type Notes

Function defined in common/src/core/processActionLinks.ts:23