You are here

public function DefinitionDiscoveryInterface::getDefinition in Libraries API 8.3

Gets a library definition by its ID.

@todo Consider returning a classed object instead of an array or at least document and validate the array structure.

Parameters

string $id: The library ID.

Return value

array The library definition.

Throws

\Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException

2 methods override DefinitionDiscoveryInterface::getDefinition()
ChainDefinitionDiscovery::getDefinition in src/ExternalLibrary/Definition/ChainDefinitionDiscovery.php
Gets a library definition by its ID.
FileDefinitionDiscoveryBase::getDefinition in src/ExternalLibrary/Definition/FileDefinitionDiscoveryBase.php
Gets a library definition by its ID.

File

src/ExternalLibrary/Definition/DefinitionDiscoveryInterface.php, line 43

Class

DefinitionDiscoveryInterface
Provides an interface for library definition discoveries.

Namespace

Drupal\libraries\ExternalLibrary\Definition

Code

public function getDefinition($id);