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.
Apparently the region and pane HTML output in the panel editor view is not using theme layer. By using theme function we'd be able to override the output for easily making changes for the class attributes and such. Wasn't sure whether to put the theme functions into the class file, but that's what I felt was the right place to have it in the end.
Here's the patch to be reviewed.
Comment | File | Size | Author |
---|---|---|---|
#3 | panels-use-theme-for-admin-panel-region-pane-output-2382479-3.patch | 5.39 KB | TomiMikola |
Comments
Comment #1
TomiMikola CreditAttribution: TomiMikola commentedComment #2
TomiMikola CreditAttribution: TomiMikola commentedFix a typo in variable names. Patch updated.
Comment #3
TomiMikola CreditAttribution: TomiMikola commentedAdding #panels_renderer and #pane for the theme functions to ease retrieving metadata in the preprocess hooks. Patch updated.