I have a View with a REST export display (image attached) that has some indexed field values from Search API.
The highlighted portion, authors
, is a Paragraph field. Instead of the entity ID pointing to the Paragraph, how can I output a JSON object per delta with the field value?
Note, I am not using JSON:API (and cannot). Also, this is a Search API DB (and eventually Solr) based index, so 'Entity' mode cannot be used (and thus, no custom Normalizer).
What can I hook into, or what class can I create, to change how the Paragraph is being included in the result output? I thought about using a custom field formatter, but that seems like a lot of work just to output JSON data (classes, theme hooks, twig etc).
indexed field
values but with regular fields I have successfully extendedFormatterBase
to createFieldFormatter
drupal.org/docs/8/creating-custom-modules/…