LibraryLoadingListenerInterface.php in Libraries API 8.3
Namespace
Drupal\libraries\ExternalLibrary\TypeFile
src/ExternalLibrary/Type/LibraryLoadingListenerInterface.phpView source
<?php
namespace Drupal\libraries\ExternalLibrary\Type;
use Drupal\libraries\ExternalLibrary\LibraryInterface;
/**
* An interface for library types that want to react to library instantiation.
*/
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);
}
Interfaces
Name | Description |
---|---|
LibraryLoadingListenerInterface | An interface for library types that want to react to library instantiation. |