3 namespace Drupal\libraries\ExternalLibrary\Version;
6 * Provides an interface for version detectors.
10 interface VersionDetectorInterface {
13 * Detects the version of a library.
15 * @param \Drupal\libraries\ExternalLibrary\Version\VersionedLibraryInterface $library
16 * The library whose version to detect.
18 * @throws \Drupal\libraries\ExternalLibrary\Exception\UnknownLibraryVersionException
20 * @todo Provide a mechanism for version detectors to provide a reason for
23 public function detectVersion(VersionedLibraryInterface $library);