From 486bb0d3a63d6031adeb55b8038d7fe33acca22d Mon Sep 17 00:00:00 2001
From: ekulishov <ekulishov@3478563.no-reply.drupal.org>
Date: Wed, 16 Dec 2020 01:05:56 -0500
Subject: [PATCH] Issue #3182997 by joseph.olstad, miritas: Incorrect interface
 name

---
 libraries.module                                               | 2 +-
 src/ExternalLibrary/Exception/LibraryTypeNotFoundException.php | 2 +-
 tests/example/example_info_file.libraries.info.yml             | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libraries.module b/libraries.module
index 0c994fa..7028d2f 100644
--- a/libraries.module
+++ b/libraries.module
@@ -368,7 +368,7 @@ function libraries_detect_dependencies(&$library, $version = NULL, $variant = NU
 
       // Remove the version string from the dependency, so libraries_load() can
       // load the libraries directly.
-      $dependency_string = $dependency_info['name'];
+      $dependency_string = $info['name'];
     }
   }
 }
diff --git a/src/ExternalLibrary/Exception/LibraryTypeNotFoundException.php b/src/ExternalLibrary/Exception/LibraryTypeNotFoundException.php
index b5655bb..4b38283 100644
--- a/src/ExternalLibrary/Exception/LibraryTypeNotFoundException.php
+++ b/src/ExternalLibrary/Exception/LibraryTypeNotFoundException.php
@@ -8,7 +8,7 @@ use Drupal\libraries\ExternalLibrary\Utility\LibraryIdAccessorInterface;
 /**
  * Provides an exception for a library definition without a type declaration.
  */
-class LibraryTypeNotFoundException extends \RuntimeException implements LibraryAccessorInterface {
+class LibraryTypeNotFoundException extends \RuntimeException implements LibraryIdAccessorInterface {
 
   use LibraryIdAccessorTrait;
 
diff --git a/tests/example/example_info_file.libraries.info.yml b/tests/example/example_info_file.libraries.info.yml
index 5aa97f3..b52e340 100644
--- a/tests/example/example_info_file.libraries.info.yml
+++ b/tests/example/example_info_file.libraries.info.yml
@@ -1,3 +1,2 @@
 # This is an example info file of a library used for testing purposes.
 name: Example info file
-type: module
\ No newline at end of file
-- 
GitLab