You are here

interface LibraryLoadingListenerInterface in Libraries API 8.3

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

Hierarchy

Expanded class hierarchy of LibraryLoadingListenerInterface

All classes that implement LibraryLoadingListenerInterface

2 files declare their use of LibraryLoadingListenerInterface
LibraryManager.php in src/ExternalLibrary/LibraryManager.php
PhpFileLibraryType.php in src/Plugin/libraries/Type/PhpFileLibraryType.php

File

src/ExternalLibrary/Type/LibraryLoadingListenerInterface.php, line 10

Namespace

Drupal\libraries\ExternalLibrary\Type
View source
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);

}

Members

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