I want to activate the Add to homescreen module, but requires Libraries. There is no version of Libraries for Drupal 8, what can I do? Is there any alternative to Add to homescreen to insert a button on the mobile as if it were an app? Thank you very much for the help.

Comments

caballeromare created an issue. See original summary.

mylies’s picture

Status: Active » Needs review
StatusFileSize
new6.65 KB

Libraries module have version for Drupal 8, but it's only dev version
You may check it here https://www.drupal.org/project/libraries/releases?api_version%5B%5D=7234

by the way, I attached a patch for integration with core libraries api
this patch provide using core libraries api and droped libraries module dependency

  • idebr committed 9b6626b on 8.x-1.x authored by myLies
    Issue #2903412 by myLies, caballeromare: Problems with libraries for...

idebr credited idebr.

idebr’s picture

Status: Needs review » Fixed

@caballeromare Thank you for raising this issue!

@myLies Thank you for creating a patch! It has been a while since I created the Drupal 8 version and Drupal core has improved its Libraries API to make this change possible. I have made a few minor changes on commit:

  • The libraries are now loaded in the sequence addtohomescreen -> set_up instead of the other way around so the logic is executed in the correct order
  • The change to addtohomescreen.drush.inc had incorrect line endings. I have converted this file to LF line endings including your change.
  • I updated the README.txt file to include the new path to where the library should be.

Status: Fixed » Closed (fixed)

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