Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In trying to add a view to the My Workbench landing page, I discovered said views cannot contain bulk operations... because the output of all blocks is rendered and placed in #markup. The problem with this is that output is passed through Xss::filterAdmin()... removing any form tags.
Proposed resolution
Blocks have built as render arrays and we're returning a render array. Why don't we just return the blocks in the render array?
Remaining tasks
Review incoming patch and decide if it's a good way forward (with minimal other changes).
User interface changes
N/A
API changes
None
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | workbench-my_workbench_render_array-2832963-2.patch | 1.14 KB | pingers |
Comments
Comment #2
pingers CreditAttribution: pingers as a volunteer and at University of Adelaide commented...and here's a patch.
Comment #3
agentrickardI'll take a look. Linked to https://github.com/agentrickard/workbench/issues/6.
Comment #5
agentrickardNice patch! Committed!
Comment #7
agentrickard