Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created November 23, 2016 08:42
Show Gist options
  • Save dawehner/283fb5ab0dcd0ceefc88df9afc84e0ec to your computer and use it in GitHub Desktop.
Save dawehner/283fb5ab0dcd0ceefc88df9afc84e0ec to your computer and use it in GitHub Desktop.
@wimleers So what I was thinking was creating a render context, execute ```$item->processed``` in there, and then call ```$this->bubble($render_context->bubble());```
@wimleers
Copy link

Ah! Yes, that's possible. Except in the case of $item->processed already having been generated. Then the magic wouldn't happen again, and we wouldn't be able to catch the cacheability metadata.

@wimleers
Copy link

Copied this discussion verbatim to https://www.drupal.org/node/2626924#comment-11795251, for future reference/to avoid linkrot.

Let's continue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment