Closed (fixed)
Project:
Twig Tweak
Version:
3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
23 Mar 2026 at 13:27 UTC
Updated:
22 Apr 2026 at 16:32 UTC
Jump to comment: Most recent
This problem popped up when upgrading to the latest version of Drupal Canvas (which uses a Decorator class).
More info on the initial issue: https://www.drupal.org/project/canvas/issues/3580632
Render a block from an SDC in drupal canvas
for example:
{{ drupal_block('webform_block', {webform_id: webform, lazy: true}) }}
protected $pluginManagerBlock;
Swap
\Drupal\Core\Cache\CacheableDependencyInterface
For
\Drupal\Core\Block\BlockManagerInterface
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
f0ns commentedPushed the changes that fix this.
Comment #4
f0ns commentedComment #5
anybodyThanks @f0ns - totally makes sense, thanks!
Comment #6
f0ns commentedThank you for reviewing!
Comment #7
anybodyThanks @f0ns - merged! Please try latest dev!
Comment #9
anybodyFYI: In 4.x this was already fixed.
Comment #10
f0ns commentedThank you, I wasn't even aware there was a 4.x branch.
I was going to ask to set it as active but I noticed there is already an issue for that: https://www.drupal.org/project/twig_tweak/issues/3581450
Thanks! 👍
Comment #12
anybody@grevil: I just saw we have no tagged release yet for this major bugfix! Could you please tag one and also publish a 4.x release? Thanks!
Comment #13
f0ns commentedThanks, for adding this in the new release.
Fixed!