Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Dependency / DependentLibraryTrait.php
diff --git a/web/modules/contrib/libraries/src/ExternalLibrary/Dependency/DependentLibraryTrait.php b/web/modules/contrib/libraries/src/ExternalLibrary/Dependency/DependentLibraryTrait.php
new file mode 100644 (file)
index 0000000..e7623ae
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\libraries\ExternalLibrary\Dependency;
+
+/**
+ * Provides a trait for libraries that depend on other libraries.
+ */
+trait DependentLibraryTrait {
+
+  /**
+   * An array of library IDs of libraries that the library depends on.
+   *
+   * @return string[]
+   */
+  protected $dependencies;
+
+  /**
+   * Returns the libraries dependencies, if any.
+   *
+   * @return string[]
+   *   An array of library IDs of libraries that the library depends on.
+   *
+   * @see \Drupal\libraries\ExternalLibrary\Dependency\DependentLibraryInterface::getDependencies()
+   */
+  public function getDependencies() {
+    return $this->dependencies;
+  }
+
+}