Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Utility / LibraryIdAccessorTrait.php
diff --git a/web/modules/contrib/libraries/src/ExternalLibrary/Utility/LibraryIdAccessorTrait.php b/web/modules/contrib/libraries/src/ExternalLibrary/Utility/LibraryIdAccessorTrait.php
new file mode 100644 (file)
index 0000000..8ec901f
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace Drupal\libraries\ExternalLibrary\Utility;
+
+/**
+ * Provides a trait for classes giving access to a library ID.
+ */
+trait LibraryIdAccessorTrait {
+
+  /**
+   * The ID of the library.
+   *
+   * @var string
+   */
+  protected $libraryId;
+
+  /**
+   * Returns the ID of the library.
+   *
+   * @return string
+   *   The library ID.
+   */
+  public function getLibraryId() {
+    return $this->libraryId;
+  }
+
+}