Lava Filters - AddToDictionary

Category:Arrays

Description:Takes an existing (or empty) dictionary and returns a new dictionary with the added key and value.
Input:
Lava: {% assign colors = '' | AddToDictionary:'success','green' | AddToDictionary:'warning','orange' | AddToDictionary:'error','red' %}
This request is approved.
This request is incomplete.
This request is denied.
Output:
This request is approved.
This request is incomplete.
This request is denied.