Problem
The #lazy_builder property was added to the render array which caused the following error.
Type : php
Severity : error
Message : DomainException: When a #lazy_builder callback is specified, no
properties can exist; all properties must be generated by the
#lazy_builder callback. You specified the following properties:
#pre_render, #type, #attributes, #process, #theme_wrappers,
#defaults_loaded. in Drupal\Core\Render\Renderer->doRender()
(line 333 of
/var/www/html/core/lib/Drupal/Core/Render/Renderer.php).
Solution
Nuke the render array instead.
Comments
Comment #2
kingdutchComment #3
sah62 commentedThis patch seems to work just fine for me running 8.x-1.12.
Comment #4
jaapjan commentedThank you for testing!
All the automated tests are also passing. Just merged the pull request and it will be in the next release.
Comment #5
jaapjan commented