public function LibraryCreationListenerInterface::onLibraryCreate in Libraries API 8.3
Reacts to the instantiation of a library.
Parameters
\Drupal\libraries\ExternalLibrary\LibraryInterface $library: The library that is being instantiated.
1 method overrides LibraryCreationListenerInterface::onLibraryCreate()
- LibraryTypeBase::onLibraryCreate in src/
ExternalLibrary/ Type/ LibraryTypeBase.php - Reacts to the instantiation of a library.
File
- src/
ExternalLibrary/ Type/ LibraryCreationListenerInterface.php, line 18
Class
- LibraryCreationListenerInterface
- An interface for library types that want to react to library instantiation.
Namespace
Drupal\libraries\ExternalLibrary\TypeCode
public function onLibraryCreate(LibraryInterface $library);