interface DependentLibraryInterface in Libraries API 8.3
Provides an interface for libraries that depend on other libraries.
@todo Implement versioned dependencies.
Hierarchy
- interface \Drupal\libraries\ExternalLibrary\LibraryInterface
- interface \Drupal\libraries\ExternalLibrary\Dependency\DependentLibraryInterface
Expanded class hierarchy of DependentLibraryInterface
All classes that implement DependentLibraryInterface
3 files declare their use of DependentLibraryInterface
- AssetLibraryInterface.php in src/
ExternalLibrary/ Asset/ AssetLibraryInterface.php - LibraryBase.php in src/
ExternalLibrary/ LibraryBase.php - MultipleAssetLibrary.php in src/
ExternalLibrary/ Asset/ MultipleAssetLibrary.php
File
- src/
ExternalLibrary/ Dependency/ DependentLibraryInterface.php, line 12
Namespace
Drupal\libraries\ExternalLibrary\DependencyView source
interface DependentLibraryInterface extends LibraryInterface {
/**
* Returns the libraries dependencies, if any.
*
* @return string[]
* An array of library IDs of libraries that the library depends on.
*/
public function getDependencies();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependentLibraryInterface:: |
public | function | Returns the libraries dependencies, if any. | |
LibraryInterface:: |
public static | function | Creates an instance of the library from its definition. | 1 |
LibraryInterface:: |
public | function | Returns the ID of the library. | |
LibraryInterface:: |
public | function | Returns the library type of the library. | 1 |