Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #2
Problem/Motivation
libraries_parse_dependency() duplicates \Drupal\Core\Extension\ModuleHandler::parseDependency(). It was initially introduced as the latter was protected but that recently changed in #2068797: ModuleHandler::parseDependency should be public. We can now re-use that function.
Proposed resolution
Re-use ModuleHandler::parseDependency() and remove libraries_parse_dependency()
Remaining tasks
Commit patch. Since this is pretty trivial I will commit this without further reviews.
API changes
libraries_parse_dependency() is removed. Since that was only introduced as a clutch ~2 weeks ago I don't think anyone is affected by that.
Related Issues
Comment | File | Size | Author |
---|---|---|---|
kill-libraries-parse-dependency.patch | 3.53 KB | tstoeckler | |
Comments
Comment #2
tstoecklerDue to https://drupal.org/node/2082661 this now breaks HEAD after #2090379: 8.x-3.x broken after 'pattern' -> 'path' rename in *.routing.yml. Will commit this now.
Comment #3
tstoecklerhttp://drupalcode.org/project/libraries.git/commit/c9f38da6b564bac81dc02...
Comment #4.0
(not verified) CreditAttribution: commentedUpdated issue summary per comment #2.