3 namespace Drupal\libraries\ExternalLibrary\Utility;
6 * Provides a trait for classes giving access to a library dependency.
8 trait DependencyAccessorTrait {
13 * @var \Drupal\libraries\ExternalLibrary\LibraryInterface
15 protected $dependency;
18 * Returns the dependency.
20 * @return \Drupal\libraries\ExternalLibrary\LibraryInterface
23 public function getLibrary() {
24 return $this->dependency;