- Issue created by @lazzyvn
- π³π±Netherlands Lendude Amsterdam
Or can you not render the View in a render context? The proposed change sounds like it might break some things (haven't tried).
- πͺπΈSpain joe_carvajal Seville (Spain)
I'm stucked with exactly the same bug, causing specifically Scheduler cron job to fail.
- πͺπΈSpain joe_carvajal Seville (Spain)
...and my use case was when rendering a render array for a content in an email context, so I replaced \Drupal::service('renderer')->render($myRenderArray) with \Drupal::service('renderer')->renderInIsolation($myRenderArray) and did the trick... It seems that renderInIsolation is used exactly in these kind of contexts: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...