- 🇩🇪Germany donquixote
Quick idea,
would it make sense to return a markup object with cacheable metadata, instead of a render element?$markup = $renderer->renderRoot($element); assert($markup instanceof MarkupInterface); assert($markup instanceof CacheableDependencyInterface);