hook_views_data_export_row_alter not firing

Created on 27 October 2023, over 1 year ago

Problem/Motivation

We've been using Views Data Export for some time to publish XML endpoints for some of our content. We now have a need to alter some of the view data and were hoping to leverage hook_views_data_export_row_alter, but it's not firing. We're on 10.1.4.

Steps to reproduce

Added the hook alongside the other hooks in our theme file (and cleared the cache as normal):

function OUR_THEME_views_data_export_row_alter(&$row, \Drupal\views\ResultRow $result, \Drupal\views\ViewExecutable $view) {
  if ($view->id() === 'events') {
    var_dump($row);
  }
}

When viewing the XML, the hook isn't triggered.

Are we missing something obvious?

Thanks in advance.

💬 Support request
Status

Active

Version

1.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024