@umbraco-cms/backoffice
    Preparing search index...

    Function umbEntryAppendValue

    • Inserts or replaces an entry value in a frozen array of entry values.

      A replaced entry keeps the array's existing order — it already has a culture-sorted position from when it was first added. A newly inserted entry is placed by culture, matching the order the backend settles a set of variant values into, so a fresh addition doesn't just land at the end out of order.

      Type Parameters

      Parameters

      • data: T[]

        An array of entry values, which is frozen and should be updated.

      • entry: T

        A new or updated entry value.

      • getUniqueMethod: (entry: T) => unknown

        Method to retrieve the value that uniquely identifies an entry, used to find an existing match to replace.

      Returns T[]

      A new array with the entry inserted or replacing its match.