Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Type / LibraryLoadingListenerInterface.php
diff --git a/web/modules/contrib/libraries/src/ExternalLibrary/Type/LibraryLoadingListenerInterface.php b/web/modules/contrib/libraries/src/ExternalLibrary/Type/LibraryLoadingListenerInterface.php
new file mode 100644 (file)
index 0000000..962e9db
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\libraries\ExternalLibrary\Type;
+
+use Drupal\libraries\ExternalLibrary\LibraryInterface;
+
+/**
+ * An interface for library types that want to react to library instantiation.
+ */
+interface LibraryLoadingListenerInterface {
+
+  /**
+   * Reacts to the instantiation of a library.
+   *
+   * @param \Drupal\libraries\ExternalLibrary\LibraryInterface $library
+   *   The library that is being instantiated.
+   */
+  public function onLibraryLoad(LibraryInterface $library);
+
+}