e7623ae7a2ec36c8a622e818c10ed87881459e16
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Dependency / DependentLibraryTrait.php
1 <?php
2
3 namespace Drupal\libraries\ExternalLibrary\Dependency;
4
5 /**
6  * Provides a trait for libraries that depend on other libraries.
7  */
8 trait DependentLibraryTrait {
9
10   /**
11    * An array of library IDs of libraries that the library depends on.
12    *
13    * @return string[]
14    */
15   protected $dependencies;
16
17   /**
18    * Returns the libraries dependencies, if any.
19    *
20    * @return string[]
21    *   An array of library IDs of libraries that the library depends on.
22    *
23    * @see \Drupal\libraries\ExternalLibrary\Dependency\DependentLibraryInterface::getDependencies()
24    */
25   public function getDependencies() {
26     return $this->dependencies;
27   }
28
29 }