I guess the main points for review on this are:
Do we just pass the $data variable straight to the callback as this patch does now (and 7.x does)?
The default code to populate default values is new.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1598060-5.patch | 1.23 KB | damiankloip |
| #2 | 1598060-2.patch | 810 bytes | damiankloip |
| ctools-exportables-controller-create-8.x.patch | 1020 bytes | damiankloip |
Comments
Comment #1
damiankloip commentedComment #2
damiankloip commentedHere is an updated version without the function callback calls.
Comment #3
tim.plunkettThat changes the function signature, so it should also be changed in ExportableControllerInterface.
Also, any thought to changing CToolsExportableTestCase::testExportable() to use create() now?
Comment #4
tim.plunkettOn second thought, replacing calls to
new $this->info['exportable class']can be a followup. But the interface definitely needs fixing.Comment #5
damiankloip commentedWith the interface sig change
Comment #6
merlinofchaos commentedThis is easy enough to just push!
Comment #7.0
(not verified) commentedUpdated issue summary.