View Model / Controller for Fieldsets (for Content API)

Is there something like a View Model for Fieldsets?

What would be the right place to define business logic or modify the output of specific fieldsets? This would apply to both Content API and Antlers Frontend.

For example: I have a replicator field (content_blocks) that imports some fieldsets (reusable blocks). Some of this blocks need business logic that modifies their output. Because the fieldsets are reusable across multiple collections and outputs (Antlers & Content API) the logic should be applied as soon as possible.

I looked at View Models, Controllers and Augmentation but nothing seems to do what I am looking for.

>>>>>>> Unanswered <<<<<<<
2 Replies
2 Followers