- π¦πΊAustralia dabbor
The fix (patch) in comment #4 seems to be the right approach (
3099580-layout-builder-view-mode.patch
), but it does not work with 2.0.x (2.0.x-dev
) version.I re-applied the patch for 2.0.x, the following line of the #4 patch had to bechanged:
- FROM:$view_mode = $element['#third_party_settings']['layout_builder']['view_mode'];
- TO:$view_mode = $variables['element']['#third_party_settings']['layout_builder']['view_mode'];