Further modules included.
[yaffs-website] / web / modules / contrib / libraries / src / ExternalLibrary / Version / VersionDetectorInterface.php
1 <?php
2
3 namespace Drupal\libraries\ExternalLibrary\Version;
4
5 /**
6  * Provides an interface for version detectors.
7  *
8  * @ingroup libraries
9  */
10 interface VersionDetectorInterface {
11
12   /**
13    * Detects the version of a library.
14    *
15    * @param \Drupal\libraries\ExternalLibrary\Version\VersionedLibraryInterface $library
16    *   The library whose version to detect.
17    *
18    * @throws \Drupal\libraries\ExternalLibrary\Exception\UnknownLibraryVersionException
19    *
20    * @todo Provide a mechanism for version detectors to provide a reason for
21    *   failing.
22    */
23   public function detectVersion(VersionedLibraryInterface $library);
24
25 }