Skip to main content
7 events
when toggle format what by license comment
May 1, 2018 at 16:47 vote accept ptinca
Apr 29, 2018 at 18:44 history edited 4uk4 CC BY-SA 3.0
add html render element
Apr 29, 2018 at 17:09 comment added ptinca This is it, thank you! Can you update you answer so I can accept it?
Apr 29, 2018 at 16:23 comment added 4uk4 I think you need to enclose the page in an html render element to attach libraries: $build = ['#type' => 'html', 'page' => [... ]];
Apr 29, 2018 at 14:49 comment added ptinca The error was my mistake, sorry. Disregard the above comment. But I'm still not getting attachments.
Apr 29, 2018 at 14:45 comment added ptinca I tried this, but now I get an error and still no attachments: "The website encountered an unexpected error. Please try again later. AssertionError: assert(is_string($chunk) || $chunk instanceof HtmlResponse) in assert() (line 259 of core/modules/big_pipe/src/Render/BigPipe.php). assert(, 'assert(is_string($chunk) || $chunk instanceof HtmlResponse)') (Line: 259)"
Apr 29, 2018 at 14:16 history answered 4uk4 CC BY-SA 3.0