You are here

public function VersionedLibraryInterface::getVersion in Libraries API 8.3

Gets the version of the library.

Return value

string The version string, for example 1.0, 2.1.4, or 3.0.0-alpha5.

Throws

\Drupal\libraries\ExternalLibrary\Exception\UnknownLibraryVersionException

See also

\Drupal\libraries\ExternalLibrary\Version\VersionedLibraryInterface::setVersion()

2 calls to VersionedLibraryInterface::getVersion()
AssetLibrary::getAttachableAssetLibrary in src/ExternalLibrary/Asset/AssetLibrary.php
Returns a core library array structure for this library.
MultipleAssetLibrary::getAttachableAssetLibraries in src/ExternalLibrary/Asset/MultipleAssetLibrary.php
Returns a core library array structure for this library.

File

src/ExternalLibrary/Version/VersionedLibraryInterface.php, line 36

Class

VersionedLibraryInterface
Provides an interface for versioned libraries.

Namespace

Drupal\libraries\ExternalLibrary\Version

Code

public function getVersion();