Problem/Motivation
php Debug User deprecated function: Theme functions are deprecated in drupal:8.0.0 and
are removed from drupal:10.0.0. Use Twig templates instead of
theme_vbo_export_content_xlsx()
Steps to reproduce
install module in Drupal 9
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | vbo_export-deprecated-theme-functions-3175522-11.patch | 17.93 KB | jacobbell84 |
| #9 | vbo_export-deprecated-theme-functions-3175522-9.patch | 18.62 KB | johnpitcairn |
| #2 | vbo_export-remove-deprecation.patch | 19.29 KB | jacobbell84 |
Comments
Comment #2
jacobbell84 commentedI refactored the code to remove the use of the user functions. Tested with CSV and XLSX export and it seems to be working ok.
Comment #3
vm commentedCleaned up title
Comment #4
jacobbell84 commentedComment #5
johnpitcairn commentedThere appear to be a lot of unrelated changes in the patch?OK I see what you've done, moved the output generation logic that was previously in theme functions directly into the plugin. Makes sense, will test.Comment #6
johnpitcairn commentedVboExportXlsx.phpis missing ause Drupal\Core\Form\FormstateInterfacestatement.Comment #7
johnpitcairn commentedActually, I think
VboExportXlsx::buildPreConfigurationForm()which usesFormStateInterfaceis not required, since there is no need to configure separators for xlsx export. The parent method in the base class should be sufficient.Comment #8
johnpitcairn commentedPatch with unnecessary xlsx separator pre-configuration form removed, and interdiff.
Comment #9
johnpitcairn commentedAck. Try this one.
Comment #10
johnpitcairn commentedPatch will now need a reroll for current dev.
Not sure I can be bothered since nobody marked it RTBC and it wasn't committed for the latest update. Somebody else can deal with it when D10 support is required.
Comment #11
jacobbell84 commentedI did a quick re-roll. Includes some cleanup that got missed in the first few patches.
Comment #12
johnpitcairn commentedThanks! Working as expected. Now we just need somebody who didn't work on it to RTBC.
Comment #13
graber commentedNice :)
Comment #15
graber commentedThanks all!