public function ComponentDiscovery::__construct in Lightning Core 8.5
Same name and namespace in other branches
- 8.3 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::__construct()
- 8.4 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::__construct()
ComponentDiscovery constructor.
Parameters
string $app_root: The application root directory.
File
- src/
ComponentDiscovery.php, line 45
Class
- ComponentDiscovery
- Helper object to locate Lightning components and sub-components.
Namespace
Drupal\lightning_coreCode
public function __construct($app_root) {
$this->discovery = new ExtensionDiscovery($app_root);
}