Hi.
Although the flag module is not complete, it's only one issue away from an alpha version.
I need a flag count for my current project, so I have written the attached patch that works with the current Flag module.

This uses tokens to replace the link with the count so it appears like: "Like (12)"/"Unlike (12)"
It's greatly simplified from the 7.x-1.x version but is a working start.

The attached patch is based off the current 8.x-1.x branch. Please review and if you're happy with that, please give me permission to commit and we can start building a complete D8 version?
Otherwise, please advise if my approach is too different and I'll create a separate project.

CommentFileSizeAuthor
#2 2828280-8.x-1.x-version-working-2.patch7.28 KBrjjakes
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rjjakes created an issue. See original summary.

rjjakes’s picture

fotuzlab’s picture

Thanks rjjakes for the initiative. I have added you a maintainer in the project.

Not been able to do much on d.o for quite sometime now. Would be happy to pitch in if I get some time.

rjjakes’s picture

Status: Needs review » Fixed

  • rjjakes committed a824bf1 on 8.x-1.x
    Issue #2828280 by rjjakes: Drupal 8 version
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.