Pass the whole response instead of only the json content

Created on 29 August 2023, about 1 year ago
Updated 13 June 2024, 5 months ago

Problem/Motivation

Will be good to pass the whole response instead of only the only json content, to have ability to alter cache tags and contexts.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Closed: works as designed

Version

1.1

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

  • Issue created by @murz
  • Status changed to Closed: works as designed 5 months ago
  • 🇳🇱Netherlands Ruuds

    The \Symfony\Component\HttpFoundation\Response instance is already passed to the alter hook. \Drupal\Core\Cache\CacheableResponse is a subclass of this, so you should be able to alter the tags and contexts if applicable.

Production build 0.71.5 2024