interface LocatorInterface in Libraries API 8.3
Provides an interface for library locators.
Because determining the installation status and library path of a library is not specific to any library or even any library type, this logic can be implemented generically in form of a locator.
Hierarchy
- interface \Drupal\libraries\ExternalLibrary\Local\LocatorInterface
Expanded class hierarchy of LocatorInterface
All classes that implement LocatorInterface
3 files declare their use of LocatorInterface
- ChainLocator.php in src/
Plugin/ libraries/ Locator/ ChainLocator.php - GlobalLocator.php in src/
Plugin/ libraries/ Locator/ GlobalLocator.php - UriLocator.php in src/
Plugin/ libraries/ Locator/ UriLocator.php
File
- src/
ExternalLibrary/ Local/ LocatorInterface.php, line 12
Namespace
Drupal\libraries\ExternalLibrary\LocalView source
interface LocatorInterface {
/**
* Locates a library.
*
* @param \Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface $library
* The library to locate.
*/
public function locate(LocalLibraryInterface $library);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LocatorInterface:: |
public | function | Locates a library. | 3 |