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
Comments
Comment #1
marvil07 commentedRe-purposing this ticket as the d8 plugins conversion, since d7 ctools oop will not be done at this point.
Comment #2
marvil07 commentedA patch from Sudhanshu, let's see how tests are going.
Comment #3
marvil07 commentedOne example test for Sudhanshu reference.
Comment #4
sudhanshug commentedQueuing the latest changes with Unit test for tests
Comment #5
sudhanshug commentedComment #6
sudhanshug commentedQueing the complete patch for tests
Comment #7
sudhanshug commentedComment #8
sudhanshug commentedCorrected last patch
Comment #9
marvil07 commentedMore details on the review, see https://github.com/marvil07/vote_up_down/pull/4#pullrequestreview-50456975
Comment #11
marvil07 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.