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

Comments

skein’s picture

Title: Drupal 8 » Drupal 8 update
biguzis’s picture

Status: Needs review » Needs work

As 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?

hongpong’s picture

field_timer is a little more recent in its D8 implementation up to January, here: https://www.drupal.org/project/field_timer

Miszel’s picture

This 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.

cheshirec7’s picture

StatusFileSize
new26.03 KB

Similarly 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

mimran’s picture

Assigned: Unassigned » mimran

  • mimran committed 64dd237 on 8.x-1.x authored by cheshirec7
    Issue #2359377 by skein, cheshirec7, mimran: Drupal 8 update
    
mimran’s picture

@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

mimran’s picture

Status: Needs work » Fixed
mimran’s picture

Status: Fixed » Closed (fixed)