Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This is a first stab, at converting plugins to return a renderable array; and also in case they return plain HTML in the $block->content, at least convert it to '#markup' => $block->content;
.
The patch isn't full, but marking as needs review, to get feedback.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1227952-ctools-render-array-2.patch | 1.47 KB | amitaibu |
ctools-renderable-array.patch | 2.03 KB | amitaibu | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThere's no need to use #markup if we're just returning strings. The system can handle that and I think we should just stay with it. Using #markup is adding weight to the system that simply doesn't need it.
That doesn't do anything. :)
Comment #2
amitaibu> That doesn't do anything. :)
Oops :)
re-rolled,and removed remove #markup as-well.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted.