You are here

public function LibraryManagerInterface::load in Libraries API 8.3

Loads library files for a library.

Note that not all library types support explicit loading. Asset libraries, in particular, are declared to Drupal core's library system and are then loaded using that.

Parameters

string $id: The ID of the library.

Throws

\Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException

\Drupal\libraries\ExternalLibrary\Exception\LibraryNotInstalledException

1 method overrides LibraryManagerInterface::load()
LibraryManager::load in src/ExternalLibrary/LibraryManager.php
Loads library files for a library.

File

src/ExternalLibrary/LibraryManagerInterface.php, line 49

Class

LibraryManagerInterface
Provides an interface for external library managers.

Namespace

Drupal\libraries\ExternalLibrary

Code

public function load($id);