You are here

interface DependentLibraryInterface in Libraries API 8.3

Provides an interface for libraries that depend on other libraries.

@todo Implement versioned dependencies.

Hierarchy

Expanded class hierarchy of DependentLibraryInterface

All classes that implement DependentLibraryInterface

3 files declare their use of DependentLibraryInterface
AssetLibraryInterface.php in src/ExternalLibrary/Asset/AssetLibraryInterface.php
LibraryBase.php in src/ExternalLibrary/LibraryBase.php
MultipleAssetLibrary.php in src/ExternalLibrary/Asset/MultipleAssetLibrary.php

File

src/ExternalLibrary/Dependency/DependentLibraryInterface.php, line 12

Namespace

Drupal\libraries\ExternalLibrary\Dependency
View source
interface DependentLibraryInterface extends LibraryInterface {

  /**
   * Returns the libraries dependencies, if any.
   *
   * @return string[]
   *   An array of library IDs of libraries that the library depends on.
   */
  public function getDependencies();

}

Members

Namesort descending Modifiers Type Description Overrides
DependentLibraryInterface::getDependencies public function Returns the libraries dependencies, if any.
LibraryInterface::create public static function Creates an instance of the library from its definition. 1
LibraryInterface::getId public function Returns the ID of the library.
LibraryInterface::getType public function Returns the library type of the library. 1