Function getAssetDocumentId

  • Tries to resolve the asset document ID from any inferrable structure

    Parameters

    • src: unknown

      Input source (image/file object, asset, reference, id, url, path)

    Returns string

    The asset document ID

    UnresolvableError Throws if passed asset source could not be resolved to an asset document ID