You are here

public function VersionedLibraryInterface::getVersionDetector in Libraries API 8.3

Gets the version detector of this library using the detector factory.

Because determining the installation version of a library is not specific to any library or even any library type, this logic is offloaded to separate detector objects.

Parameters

\Drupal\Component\Plugin\Factory\FactoryInterface $detector_factory:

Return value

\Drupal\libraries\ExternalLibrary\Version\VersionDetectorInterface

See also

\Drupal\libraries\ExternalLibrary\Version\VersionDetectorInterface

File

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

Class

VersionedLibraryInterface
Provides an interface for versioned libraries.

Namespace

Drupal\libraries\ExternalLibrary\Version

Code

public function getVersionDetector(FactoryInterface $detector_factory);