interface LibraryLoadingListenerInterface in Libraries API 8.3
An interface for library types that want to react to library instantiation.
Hierarchy
- interface \Drupal\libraries\ExternalLibrary\Type\LibraryLoadingListenerInterface
Expanded class hierarchy of LibraryLoadingListenerInterface
All classes that implement LibraryLoadingListenerInterface
2 files declare their use of LibraryLoadingListenerInterface
- LibraryManager.php in src/
ExternalLibrary/ LibraryManager.php - PhpFileLibraryType.php in src/
Plugin/ libraries/ Type/ PhpFileLibraryType.php
File
- src/
ExternalLibrary/ Type/ LibraryLoadingListenerInterface.php, line 10
Namespace
Drupal\libraries\ExternalLibrary\TypeView source
interface LibraryLoadingListenerInterface {
/**
* Reacts to the instantiation of a library.
*
* @param \Drupal\libraries\ExternalLibrary\LibraryInterface $library
* The library that is being instantiated.
*/
public function onLibraryLoad(LibraryInterface $library);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LibraryLoadingListenerInterface:: |
public | function | Reacts to the instantiation of a library. | 1 |