The Drupal 8 branch is out of date. Many things don't work.
I have attached a patch that fixes a lot of problems and makes it work with at least Drupal 8 beta 1
This patch contains the following things.
1. Change from PSR-0 to PSR-4 folder structure.
2. Fixed block methods signatures
3. Form state is now FormStateInterface
4. JS and CSS moved into jquery_countdown_timer.libraries.yml
5. Update to README.txt to where to put the module
6. Re-factored JavaScript to use new drupalSettings
7. Re-factored JavaScript to use jquery.once library instead of the processed class settings, which was standard in D6. (Needs backport to D7)
8. The empty *.module file is not needed anymore.
9. Re-factored JavaScript to use $ in variables where it's a jquery element as per Drupal JS standards
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | jquery_countdown_timer.zip | 26.03 KB | cheshirec7 |
| jquery_countdown_timer-beta_compatibility.patch | 9.55 KB | skein |
Comments
Comment #1
skein commentedComment #2
biguzis commentedAs Drupal 8.0.1 is out, version of contrib module and also this patch is way out of date. Any progress is going on right now?
Comment #3
hongpong commentedfield_timer is a little more recent in its D8 implementation up to January, here: https://www.drupal.org/project/field_timer
Comment #4
Miszel commentedThis module is supposed to be lightweight and only provide a block with a countdown timer.
I am looking for someone who would want to become a co-maintainer and finish porting the module to D8. Drop me a message if you are interested.
Comment #5
cheshirec7 commentedSimilarly to what skein did, I have recreated this module:
1) I followed the Drupal 8 examples
2) Added weeks
3) Used HTML5 field types on the Block Config page
Cheers
Comment #6
mimran commentedComment #8
mimran commented@cheshirec7 Thanks for you work much appreciated and congrats for you first commit for the drupal.org next time submit a patch rather than a zip :)
https://www.drupal.org/node/707484
Comment #9
mimran commentedComment #10
mimran commented