Im using the following code to get all the layout fields:
function expose_ACF_fields( $object ) {
$ID = $object['id'];
return get_fields($ID);
}
Is is possible to get the field-attributes of the object, like width, height and ID and adding this to the REST API output?