LibraryAccessorTrait.php in Libraries API 8.3
Namespace
Drupal\libraries\ExternalLibrary\UtilityFile
src/ExternalLibrary/Utility/LibraryAccessorTrait.phpView source
<?php
namespace Drupal\libraries\ExternalLibrary\Utility;
/**
* Provides a trait for classes giving access to a library.
*/
trait LibraryAccessorTrait {
/**
* The library.
*
* @var \Drupal\libraries\ExternalLibrary\LibraryInterface
*/
protected $library;
/**
* Returns the library.
*
* @return \Drupal\libraries\ExternalLibrary\LibraryInterface
* The library.
*/
public function getLibrary() {
return $this->library;
}
}Traits
|
Name |
Description |
|---|---|
| LibraryAccessorTrait | Provides a trait for classes giving access to a library. |