Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Type / LibraryTypeInterface.php
diff --git a/web/modules/contrib/libraries/src/ExternalLibrary/Type/LibraryTypeInterface.php b/web/modules/contrib/libraries/src/ExternalLibrary/Type/LibraryTypeInterface.php
new file mode 100644 (file)
index 0000000..d6537fb
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+namespace Drupal\libraries\ExternalLibrary\Type;
+
+/**
+ * Provides an interface for library types.
+ */
+interface LibraryTypeInterface {
+
+  /**
+   * Returns the ID of the library type.
+   *
+   * @return string
+   *   The library type ID.
+   */
+  public function getId();
+
+  /**
+   * Returns the class used for libraries of this type.
+   *
+   * @return string|\Drupal\libraries\ExternalLibrary\LibraryInterface
+   *   The library class for this library type.
+   *
+   * @todo Consider adding a getLibraryInterface() method, as well.
+   */
+  public function getLibraryClass();
+
+}