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.
Problem/Motivation
Embrace D8 API.
Proposed resolution
Convert d7 vud widgets implemented as ctools plugins into d8 core plugins.
Remaining tasks
- Define the new plugin type vud_widget.
- Write a test module containing a vud widget.
- Write a test that loads and checks plugin metadata from the defined test module.
- Convert all vud widgets into d8 plugins.
User interface changes
None, this is not about UI, but about the underlying internal API.
API changes
Any custom vud widget will need to change entirely to be a d8 plugin of the type that will be defined for vud widgets.
Data model changes
Inherent in the d8 plugin conversion.
Original report by marvil07
So it would be easier to create widgets based on a parent widget, and changing i.e. only the sprite.
Patches welcome
Comment | File | Size | Author |
---|---|---|---|
#8 | 0001-created-vud_widgets-and-the-corresponding-plugins.patch | 58.56 KB | sudhanshug |
| |||
#7 | 0001-created-vud_widgets-and-the-corresponding-plugins.patch | 58.51 KB | sudhanshug |
| |||
#6 | 4.patch | 56.65 KB | sudhanshug |
#4 | 0001-created-vud_widgets-and-the-corresponding-plugins.patch | 36.33 KB | sudhanshug |
#3 | example-test-running.patch | 598 bytes | marvil07 |
|
Comments
Comment #1
marvil07 CreditAttribution: marvil07 as a volunteer commentedRe-purposing this ticket as the d8 plugins conversion, since d7 ctools oop will not be done at this point.
Comment #2
marvil07 CreditAttribution: marvil07 as a volunteer commentedA patch from Sudhanshu, let's see how tests are going.
Comment #3
marvil07 CreditAttribution: marvil07 as a volunteer commentedOne example test for Sudhanshu reference.
Comment #4
sudhanshug CreditAttribution: sudhanshug as a volunteer and at Google Summer of Code commentedQueuing the latest changes with Unit test for tests
Comment #5
sudhanshug CreditAttribution: sudhanshug as a volunteer and at Google Summer of Code commentedComment #6
sudhanshug CreditAttribution: sudhanshug as a volunteer and at Google Summer of Code commentedQueing the complete patch for tests
Comment #7
sudhanshug CreditAttribution: sudhanshug as a volunteer and at Google Summer of Code commentedComment #8
sudhanshug CreditAttribution: sudhanshug as a volunteer and at Google Summer of Code commentedCorrected last patch
Comment #9
marvil07 CreditAttribution: marvil07 as a volunteer commentedMore details on the review, see https://github.com/marvil07/vote_up_down/pull/4#pullrequestreview-50456975
Comment #11
marvil07 CreditAttribution: marvil07 as a volunteer commentedAfter some more back and forth on github, I am happy to incorporate the latest code about this.
Here a script I used to test this code and its output, which suggests more work is needed still, but it probably is about passing the right variables to the template.
Code:
Output:
Let's continue on a follow-up tickets as needed.