You are here

interface LibraryCreationListenerInterface in Libraries API 8.3

An interface for library types that want to react to library instantiation.

Hierarchy

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\Type
View 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

Namesort descending Modifiers Type Description Overrides
LibraryCreationListenerInterface::onLibraryCreate public function Reacts to the instantiation of a library. 1