public function ChainLocator::addLocator in Libraries API 8.3
Add a locator to the chain.
Parameters
\Drupal\libraries\ExternalLibrary\Local\LocatorInterface $locator: A locator to add to the chain.
File
- src/
Plugin/ libraries/ Locator/ ChainLocator.php, line 30
Class
- ChainLocator
- Provides a locator utilizing a chain of other individual locators.
Namespace
Drupal\libraries\Plugin\libraries\LocatorCode
public function addLocator(LocatorInterface $locator) {
$this->locators[] = $locator;
return $this;
}