interface VersionDetectorInterface in Libraries API 8.3
Provides an interface for version detectors.
Hierarchy
- interface \Drupal\libraries\ExternalLibrary\Version\VersionDetectorInterface
Expanded class hierarchy of VersionDetectorInterface
All classes that implement VersionDetectorInterface
Related topics
2 files declare their use of VersionDetectorInterface
- LinePatternDetector.php in src/
Plugin/ libraries/ VersionDetector/ LinePatternDetector.php - StaticDetector.php in src/
Plugin/ libraries/ VersionDetector/ StaticDetector.php
File
- src/
ExternalLibrary/ Version/ VersionDetectorInterface.php, line 10
Namespace
Drupal\libraries\ExternalLibrary\VersionView source
interface VersionDetectorInterface {
/**
* Detects the version of a library.
*
* @param \Drupal\libraries\ExternalLibrary\Version\VersionedLibraryInterface $library
* The library whose version to detect.
*
* @throws \Drupal\libraries\ExternalLibrary\Exception\UnknownLibraryVersionException
*
* @todo Provide a mechanism for version detectors to provide a reason for
* failing.
*/
public function detectVersion(VersionedLibraryInterface $library);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
VersionDetectorInterface:: |
public | function | Detects the version of a library. | 2 |