- Issue created by @larowlan
\Drupal\Core\Template\TwigNodeTrans::compileString calls $text .= $node->getAttribute('data'); without checking if the $node has the data attribute.
This results in an uncaught logic exception.
Add a twig node visitor that modifies a PrintNode inside a {% trans %} tag.
Have the visitor return a new series of nodes to wrap the original node.
See the uncaught exception
Only call getAttribute if the attribute exists.
If the node can't be handled at that point, probably need to loop and call compileString recursively
Active
11.0 π₯
theme system