interface LibraryTypeInterface in Libraries API 8.3
Provides an interface for library types.
Hierarchy
- interface \Drupal\libraries\ExternalLibrary\Type\LibraryTypeInterface
Expanded class hierarchy of LibraryTypeInterface
All classes that implement LibraryTypeInterface
6 files declare their use of LibraryTypeInterface
- AssetLibrary.php in src/
ExternalLibrary/ Asset/ AssetLibrary.php - LibraryBase.php in src/
ExternalLibrary/ LibraryBase.php - LibraryInterface.php in src/
ExternalLibrary/ LibraryInterface.php - LibraryTypeKernelTestBase.php in tests/
src/ Kernel/ LibraryTypeKernelTestBase.php - MultipleAssetLibrary.php in src/
ExternalLibrary/ Asset/ MultipleAssetLibrary.php
File
- src/
ExternalLibrary/ Type/ LibraryTypeInterface.php, line 8
Namespace
Drupal\libraries\ExternalLibrary\TypeView source
interface LibraryTypeInterface {
/**
* Returns the ID of the library type.
*
* @return string
* The library type ID.
*/
public function getId();
/**
* Returns the class used for libraries of this type.
*
* @return string|\Drupal\libraries\ExternalLibrary\LibraryInterface
* The library class for this library type.
*
* @todo Consider adding a getLibraryInterface() method, as well.
*/
public function getLibraryClass();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LibraryTypeInterface:: |
public | function | Returns the ID of the library type. | |
LibraryTypeInterface:: |
public | function | Returns the class used for libraries of this type. | 3 |