You are here

interface LibraryTypeInterface in Libraries API 8.3

Provides an interface for library types.

Hierarchy

Expanded class hierarchy of LibraryTypeInterface

All classes that implement LibraryTypeInterface

6 files declare their use of LibraryTypeInterface
AssetLibrary.php in src/ExternalLibrary/Asset/AssetLibrary.php
LibraryBase.php in src/ExternalLibrary/LibraryBase.php
LibraryInterface.php in src/ExternalLibrary/LibraryInterface.php
LibraryTypeKernelTestBase.php in tests/src/Kernel/LibraryTypeKernelTestBase.php
MultipleAssetLibrary.php in src/ExternalLibrary/Asset/MultipleAssetLibrary.php

... See full list

File

src/ExternalLibrary/Type/LibraryTypeInterface.php, line 8

Namespace

Drupal\libraries\ExternalLibrary\Type
View source
interface LibraryTypeInterface {

  /**
   * Returns the ID of the library type.
   *
   * @return string
   *   The library type ID.
   */
  public function getId();

  /**
   * Returns the class used for libraries of this type.
   *
   * @return string|\Drupal\libraries\ExternalLibrary\LibraryInterface
   *   The library class for this library type.
   *
   * @todo Consider adding a getLibraryInterface() method, as well.
   */
  public function getLibraryClass();

}

Members

Namesort descending Modifiers Type Description Overrides
LibraryTypeInterface::getId public function Returns the ID of the library type.
LibraryTypeInterface::getLibraryClass public function Returns the class used for libraries of this type. 3