data_bucket_set

Function to generate a data bucket. Chainable. This function can both be used to create a new data bucket or to update an existing one When updating an existing bucket, the first parameter will contain the bucket

Example

1
2
3
4
5
{% assign customerInfo = 'address.street' | data_bucket_set: '6th avenue' | data_bucket_set: 'address.city', 'New York'  %}
{% assign customerInfo = customerInfo | 'address.zip', 'XYZ 123'  %}
{{ customerInfo.address.street }} => 6th avenue
{{ customerInfo.address.city }} => New York
{{ customerInfo.address.zip }} => XYZ 123

Input

Type Parameter Description Required
mixed param1 Existing bucket or path to set in new bucket. Comes before the | sign. Required
mixed param2 Path to set in in existing bucket or value to set if new bucket  
mixed param3 Value to set if existing bucket  

Output

Type Description
array Bucket array containing data