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