Any plans for a port to Drupal 8?
Patches from Sharique applied here for 8.x-1.x: https://gitlab.com/nigelcunningham/service_links
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | service-links-8.x-1.x.patch | 471.1 KB | nigelcunningham |
| #7 | autoconvert-partial-2379109-7.patch | 83.85 KB | hongpong |
| #4 | service_links_drupal_8_port-2379109-4.patch | 9.74 KB | sharique |
Comments
Comment #1
simon georges commentedI think theCrow had big plans for a 7.x-3.x-dev version, with a change of architecture. And I think a complete refactoring would be a good thing moving forward (maybe abusing the new Plugin system?).
That said, I currently have neither a plan nor time to port Service Links to D8, and I've not seen theCrow in the issue queue in a long time, so I think we're currently looking for someone willing to tackle it...
Comment #2
sharique commentedAny update on this?
I think we should create new plugin type with name ServiceLink and create ServiceLink type plugin for each service.
Comment #3
sharique commentedI've done some basic work, will improve it further, comments and suggestions are welcome
Comment #4
sharique commentedI've updated my patch, to test it you need to comment out all code from module file.
Let me know if this approach looks good.
Comment #5
chegor commentedCan we create first alpha (dev) version for 8.x?
Comment #6
hongpong commentedIn the interests of revisiting this, because I liked service_links so much, I took Sharique's patch and made a github repository on an 8.x-1.x branch here. https://github.com/HongPong/service_links Hopefully people are down to review this thing
Comment #7
hongpong commentedI got this report from running the latest drupalmoduleupgrader against 7.x-2.x HEAD. (attached).
Also attached here is a patch from a partially successful run of the drupalmoduleupgrader before it errored out with
against 7.x-2.x . It did cover a bunch of stuff that Sharique patch did not, though I am attaching this to my github repo as branch "8.x-autoconvert-partial".
The error was on the attempt to convert the permissions hook I see now. I posted on a gist here https://gist.github.com/HongPong/4604747cc4f0784edc5f2715377fa69e
Line 69 may be the return $hooks in service_links.module :
see https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...
There are tons of sub modules in this thing so I would suspect they should be removed first to proceed more cleanly, then added back as needed.
It needs work in the menu.yml file, nothing there yet on either side. https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
Comment #8
nigelcunningham commentedI'm doing some work on this module and have forked HongPong's repo to: https://github.com/NigelCunningham/service_links.
Regards,
Nigel
Comment #9
nigelcunningham commentedHi all.
Since the last comment, I've done a lot more work on the Service Links module D8 port, and would like to get some feedback please.
Service links are now implemented as a field that can be added to custom blocks, entities and so on. To avoid requiring the same configuration to be done over and over for different contexts, sets of links can be configured in the sitewide config. These links are then added as a field to the appropriate entity, and the display settings on the entity control whether images. text or both are displayed (among other options), and also whether the Fisheye styling is used.
I've cleaned up a lot of definitions for services that were broken, and added unit tests for a good portion of the code.
Work still to do:
- More unit tests
- More cleanup / moving settings from the link definitions to the display settings.
Looking forward to feedback; I'm sure there are things that can be done better but I think I need someone with a fresh perspective to give me input there.
Comment #10
nigelcunningham commentedNew repo for the port (I'm moving from Github to Gitlab): git@gitlab.com:nigelcunningham/service_links.git
Comment #11
hongpong commentedhi NigelCunningham I think you'll have to adjust the permissions on the project. I don't see it yet :)
https://gitlab.com/users/nigelcunningham/projects
Thank you for making headway. I always liked service_links
Comment #12
nigelcunningham commentedAh. I didn't realise Gitlab makes repos private by default. Fixed now, thanks!
Comment #13
nigelcunningham commentedHere's a complete diff between the 7.x-1.x branch and 8.x-1.x.