Pass the whole response to JsonapiParseInterface::parse() instead of only content

Created on 13 July 2023, over 1 year ago
Updated 8 August 2023, over 1 year ago

Problem/Motivation

Now JsonapiParseInterface::parse() accepts only the content of a response (string). But when we alter the response, sometimes we need to add cache tags and contexts, but can't do it only with the content part of the response.

Steps to reproduce

1. Override or decorate the "jsonapi_include.response" service.
2. Try to add cache tags or cache contexts to the reponse.
It's not possible with the current implementation.

Proposed resolution

Pass the whole Response object to the JsonapiParseInterface::parse() function.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024