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.
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.