Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Local / LocatorInterface.php
diff --git a/web/modules/contrib/libraries/src/ExternalLibrary/Local/LocatorInterface.php b/web/modules/contrib/libraries/src/ExternalLibrary/Local/LocatorInterface.php
new file mode 100644 (file)
index 0000000..a1be894
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\libraries\ExternalLibrary\Local;
+
+/**
+ * Provides an interface for library locators.
+ *
+ * Because determining the installation status and library path of a library
+ * is not specific to any library or even any library type, this logic can be
+ * implemented generically in form of a locator.
+ */
+interface LocatorInterface {
+
+  /**
+   * Locates a library.
+   *
+   * @param \Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface $library
+   *   The library to locate.
+   */
+  public function locate(LocalLibraryInterface $library);
+
+}