Hi!
I would like to start porting the module to D8.
I have produced some code already, so if there isn't any problems, I would like to continue doing that :)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rang501 created an issue. See original summary.

dboulet’s picture

Hi! No work has been done to port the module to D8 so far, so patches are welcome. That can at least get us started on a new 8.x-dev branch. I’d only ask that you try as much as possible to maintain parity with the D7 version to make backporting easier.

rang501’s picture

I have finished porting the module. The patch is attached (this can be applied to dev version).
This can be reviewed and tested now.

rang501’s picture

Status: Active » Needs review
HongPong’s picture

I ran into trouble with the .install file as I am not familiar with the schema update process for d8. Was able to fix some minor code style notices. I removed all the leading spacing in the twig file to make its final indentations more readable, and put comments at beginning and end of the twig markup to help with development. Added a deprecation notice todo comment. Missing invisimail function for d8 noted in code, more info added to readme.

Everything else seems really good, I think it can probably be committed on a new branch. It might be good to refactor some of this code later by relying on other libraries, however it does work and isn't too complicated.

HongPong’s picture

@dboulet @rang501 I was just made the co-maintainer at dormant project microformats project and if we can't do it on this module I will try to build it using the existing PHP indieweb libraries in composer. Brief plan laid out here #2718207: Request to co-maintain for great Drupal 8 indieweb foundation.

HongPong’s picture

I have it almost ported over but the block is not working yet. code is here for now. https://github.com/HongPong/microformats/tree/hcard_sitewide

AndyD328’s picture

Hi, it would be great to have a dev release for this project, even without the microformats being finished it's still very useful.

karthikeyan-manivasagam’s picture

HongPong’s picture

@karthikeyan-manivasagam I will look at rolling this into microformats module if that's all right with you.

karthikeyan-manivasagam’s picture

@hongpong ya sure, but this one also would be a 'D8 port' of contactinfo module, May be it will be useful for a simple drupal websites.

HongPong’s picture

@karthikeyan-manivasagam I took a quick first attempt at merging your code into microformats here. #2720199: Sitewide hcards for D8, object factory?

HongPong’s picture

Update, thanks to mlncn this has been updated. tagging alpha release : https://www.drupal.org/project/microformats