trait DependentLibraryTrait in Libraries API 8.3
Provides a trait for libraries that depend on other libraries.
Hierarchy
- trait \Drupal\libraries\ExternalLibrary\Dependency\DependentLibraryTrait
1 file declares its use of DependentLibraryTrait
- LibraryBase.php in src/
ExternalLibrary/ LibraryBase.php
File
- src/
ExternalLibrary/ Dependency/ DependentLibraryTrait.php, line 8
Namespace
Drupal\libraries\ExternalLibrary\DependencyView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependentLibraryTrait:: |
protected | property | An array of library IDs of libraries that the library depends on. | |
DependentLibraryTrait:: |
public | function | Returns the libraries dependencies, if any. |