Skip to content

Instantly share code, notes, and snippets.

@podarok
Created August 3, 2020 16:30
Show Gist options
  • Save podarok/14f2a01d6f4b8a959d1a13f5a510e1b2 to your computer and use it in GitHub Desktop.
Save podarok/14f2a01d6f4b8a959d1a13f5a510e1b2 to your computer and use it in GitHub Desktop.
Libraries OpenY Drupal 9 fix
diff --git a/libraries.module b/libraries.module
index 2ce2f19..e7fe5be 100644
--- a/libraries.module
+++ b/libraries.module
@@ -117,7 +117,7 @@ function libraries_get_libraries() {
// profile, installation profiles may want to place libraries into a
// 'libraries' directory.
if ($profile = \Drupal::installProfile()) {
- $profile_path = \Drupal\Core\Extension\ExtensionList::getPath('profile', $profile);
+ $profile_path = drupal_get_path('profile', $profile);
$searchdir[] = "$profile_path/libraries";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment