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