You are here

interface VersionDetectorInterface in Libraries API 8.3

Provides an interface for version detectors.

Hierarchy

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\Version
View 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

Namesort descending Modifiers Type Description Overrides
VersionDetectorInterface::detectVersion public function Detects the version of a library. 2