Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Utility / DependencyAccessorTrait.php
1 <?php
2
3 namespace Drupal\libraries\ExternalLibrary\Utility;
4
5 /**
6  * Provides a trait for classes giving access to a library dependency.
7  */
8 trait DependencyAccessorTrait {
9
10   /**
11    * The dependency.
12    *
13    * @var \Drupal\libraries\ExternalLibrary\LibraryInterface
14    */
15   protected $dependency;
16
17   /**
18    * Returns the dependency.
19    *
20    * @return \Drupal\libraries\ExternalLibrary\LibraryInterface
21    *   The library.
22    */
23   public function getLibrary() {
24     return $this->dependency;
25   }
26
27 }