I would like to be able to provide a format for some ostensibly rendered content that is then left as an array in the services feed.

This is due to the need to apply some transformations on it rather than just dumping the raw, unformatted object.

An example of this use case, as is how I encountered it, is that I have to expose URLs from files along with their fields, so it was not raw as the core module/field formatter had it, but transformed and rendered.

I've attached a patch that will support this by defining a #raw flag to be set in the render array. If this is set, the code will overlap with the Services Raw field formatter and retain the array, if it is not, it will fall into the render function call and be treated as before.

Comments

ygerasimov’s picture

Status: Active » Postponed (maintainer needs more info)

I am very sorry, but I do not understand what you try to achieve. Could you please provide example for using this key?