So have a simple Field a user can enter some IDs in:
<field name="ids" type="subform" min="1" multiple="true" layout="joomla.form.field.subform.repeatable-table" buttons="add,remove" groupByFieldset="false" label="IDs">
<form>
<fieldset name="section1" label="Section1">
<field name="id" label="ID" min="0" type="number" />
</fieldset>
</form>
</field>
If i want fo get the IDs as a simple array. At the moment i do this:
$ids = array_column(json_decode(json_encode($this->params->get('ids')), TRUE), 'id');
That looks a bit weird, but i want to avoid using loops. Is there a framework friendly approach to this?