DependentLibraryTrait.php in Libraries API 8.3
File
src/ExternalLibrary/Dependency/DependentLibraryTrait.phpView source
<?php
namespace Drupal\libraries\ExternalLibrary\Dependency;
/**
* Provides a trait for libraries that depend on other libraries.
*/
trait DependentLibraryTrait {
/**
* An array of library IDs of libraries that the library depends on.
*
* @return string[]
*/
protected $dependencies;
/**
* Returns the libraries dependencies, if any.
*
* @return string[]
* An array of library IDs of libraries that the library depends on.
*
* @see \Drupal\libraries\ExternalLibrary\Dependency\DependentLibraryInterface::getDependencies()
*/
public function getDependencies() {
return $this->dependencies;
}
}
Traits
Name | Description |
---|---|
DependentLibraryTrait | Provides a trait for libraries that depend on other libraries. |