You are here

LibraryLoadingListenerInterface.php in Libraries API 8.3

File

src/ExternalLibrary/Type/LibraryLoadingListenerInterface.php
View 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

Namesort descending Description
LibraryLoadingListenerInterface An interface for library types that want to react to library instantiation.