HOOK_preprocess_node() does not get triggered when DS layout got selected

Created on 11 April 2016, about 8 years ago
Updated 30 July 2023, 11 months ago

Initially I filed an issue over at Drupal Exchange because I had no idea why I HOOK_preprocess_node() has not been triggered.

By now I think it is an DS issue because when I do not select a DS layout for my content type HOOK_preprocess_node() gets triggered. But when I select a layout, HOOK_preprocess_node() does not anymore get triggered.

πŸ› Bug report
Status

Closed: works as designed

Version

2.3

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland 4aficiona2

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡¬πŸ‡§United Kingdom natts London

    I was able to trigger it using hook_preprocess_ds_entity_view:

    function mytheme_preprocess_ds_entity_view(&$variables) {
      $variables['node'] = $variables['content']['#node'];
      $variables['view_mode'] = $variables['content']['#view_mode'];
    
      mytheme_preprocess_node($variables);
    }
Production build 0.69.0 2024