Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292306

Verify that the library files exist

$
0
0

Problem/Motivation

Library API can find files also into the /libraries folder so it could be used for manage external libraries defined in contrib modules (i.e. to hold javascript file with a different license than Drupal). These modules require a way to verify the existence of the required files (maybe in hook_requirements) so they can notify the user to download the library into the /libraries folder.

Proposed resolution

We could add a new method into LibraryDiscovery class to verify that required files exist.

Remaining tasks

  • The patch is ready for review
  • Tests to be written
  • Documentation to be written

User interface changes

None

API changes

None (just a new method added to the class LibraryDiscovery)


Viewing all articles
Browse latest Browse all 292306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>