public function GlobalLocator::__construct in Libraries API 8.3
Constructs a global locator.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Drupal config factory service.
\Drupal\Component\Plugin\Factory\FactoryInterface $locator_factory: The locator factory.
File
- src/
Plugin/ libraries/ Locator/ GlobalLocator.php, line 43
Class
- GlobalLocator
- Provides a locator based on global configuration.
Namespace
Drupal\libraries\Plugin\libraries\LocatorCode
public function __construct(ConfigFactoryInterface $config_factory, FactoryInterface $locator_factory) {
$this->configFactory = $config_factory;
$this->locatorFactory = $locator_factory;
}