3 namespace Drupal\libraries\ExternalLibrary\Type;
5 use Drupal\libraries\ExternalLibrary\LibraryInterface;
8 * An interface for library types that want to react to library instantiation.
10 interface LibraryLoadingListenerInterface {
13 * Reacts to the instantiation of a library.
15 * @param \Drupal\libraries\ExternalLibrary\LibraryInterface $library
16 * The library that is being instantiated.
18 public function onLibraryLoad(LibraryInterface $library);