interface AttachableAssetLibraryRegistrationInterface in Libraries API 8.3
An interface for library types that want to react to library instantiation.
Hierarchy
- interface \Drupal\libraries\ExternalLibrary\Asset\AttachableAssetLibraryRegistrationInterface
Expanded class hierarchy of AttachableAssetLibraryRegistrationInterface
All classes that implement AttachableAssetLibraryRegistrationInterface
3 files declare their use of AttachableAssetLibraryRegistrationInterface
- AssetLibraryType.php in src/
Plugin/ libraries/ Type/ AssetLibraryType.php - libraries.module in ./
libraries.module - External library handling for Drupal modules.
- MultipleAssetLibraryType.php in src/
Plugin/ libraries/ Type/ MultipleAssetLibraryType.php
File
- src/
ExternalLibrary/ Asset/ AttachableAssetLibraryRegistrationInterface.php, line 11
Namespace
Drupal\libraries\ExternalLibrary\AssetView source
interface AttachableAssetLibraryRegistrationInterface {
/**
* Reacts to the instantiation of a library.
*
* @param \Drupal\libraries\ExternalLibrary\LibraryInterface $external_library
* The library that is being instantiated.
* @param \Drupal\libraries\ExternalLibrary\LibraryManagerInterface $library_manager
*/
public function getAttachableAssetLibraries(LibraryInterface $external_library, LibraryManagerInterface $library_manager);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AttachableAssetLibraryRegistrationInterface:: |
public | function | Reacts to the instantiation of a library. | 2 |