public function LibraryManagerInterface::getLibrary in Libraries API 8.3
Gets a library by its ID.
Parameters
string $id: The library ID.
Return value
\Drupal\libraries\ExternalLibrary\LibraryInterface The library object.
Throws
\Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException
\Drupal\libraries\ExternalLibrary\Exception\LibraryTypeNotFoundException
\Drupal\Component\Plugin\Exception\PluginException
1 method overrides LibraryManagerInterface::getLibrary()
- LibraryManager::getLibrary in src/
ExternalLibrary/ LibraryManager.php - Gets a library by its ID.
File
- src/
ExternalLibrary/ LibraryManagerInterface.php, line 23
Class
- LibraryManagerInterface
- Provides an interface for external library managers.
Namespace
Drupal\libraries\ExternalLibraryCode
public function getLibrary($id);