Views hooks not executed

Created on 20 November 2018, about 6 years ago
Updated 24 August 2023, about 1 year ago

I have a view which, for various reasons, I had to alter one of the fields using hook_views_view_field().

But this hook is not firing on the CSV export, therefore different/incorrect data is in the CSV compared to the view shown on the website.

From looking at the code in Plugin/views/display/DataExport, I think it bypasses all the usual views field rendering functions.

So could we invoke our own hook somewhere, such as Plugin/views/style/DataExport::render()?

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom Rob230

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024