You are here

public function DefinitionDiscoveryInterface::hasDefinition in Libraries API 8.3

Checks whether a library definition exists.

Parameters

string $id: The library ID.

Return value

bool TRUE if a library definition with the given ID exists; FALSE otherwise.

1 call to DefinitionDiscoveryInterface::hasDefinition()
FileDefinitionDiscoveryBase::getDefinition in src/ExternalLibrary/Definition/FileDefinitionDiscoveryBase.php
Gets a library definition by its ID.
3 methods override DefinitionDiscoveryInterface::hasDefinition()
ChainDefinitionDiscovery::hasDefinition in src/ExternalLibrary/Definition/ChainDefinitionDiscovery.php
Checks whether a library definition exists.
FileDefinitionDiscovery::hasDefinition in src/ExternalLibrary/Definition/FileDefinitionDiscovery.php
Checks whether a library definition exists.
GuzzleDefinitionDiscovery::hasDefinition in src/ExternalLibrary/Definition/GuzzleDefinitionDiscovery.php
Checks whether a library definition exists.

File

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

Class

DefinitionDiscoveryInterface
Provides an interface for library definition discoveries.

Namespace

Drupal\libraries\ExternalLibrary\Definition

Code

public function hasDefinition($id);