Problem/Motivation

The project currently hardcodes /libraries in its libraries.yml definitions. but that's not the only place where you can have them. As an install profile, I'd like to put them in profiles/me/libraries.

The same is true for dropzonejs I guess.

Proposed resolution

If libraries.module is available, use it to update the path to the library, e.g in an library_info_alter() hook.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Berdir created an issue. See original summary.

markusa’s picture

+1 If you have a Drupal 8 multisite setup this module will not work (needs Libraries module support)

samuel.mortenson’s picture

I should be able to look at this tomorrow - DropzoneJS will need to have similar Libraries support for the entire browser to work though.

berdir’s picture

Already fixed there, see the referenced issue.

  • samuel.mortenson committed 7fbb290 on 8.x-1.x
    Issue #2643838 by Berdir, samuel.mortenson: Libraries module should (...
samuel.mortenson’s picture

Status: Active » Fixed

Copied the logic from the DropzoneJS patch, and testing things out by moving all libraries to sites/all/libraries, re-installing, and using the File Browser again. Thanks for the report!

Status: Fixed » Closed (fixed)

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