repeatable - How to get values from this field type ?
I am coding a Free module with a repeatable field.
<field name="star_slides" type="Repeatable" icon="list" description="" label="Edit Your Slides" default="{'main_image':[''],'left_side':[''],'right_side':['']}">
For a normal module parameter, I can get value like this
$test = $params->get('test');
If I do the same for the repeatable field
$test = $params->get('star_slides');
I get all the values of the main field - Looks like an array output.
How to do this for a repeatable form field and get value of EACH repetition of the field?
For example, in the above case, my goal is to get the value of the field "main_image" for each repetition. I am thinking use "for each" but not sure how to get through and pull the values of each row, each field - one by one.