protected function LibraryDeriver::getExtensionLocations in Gin Layout Builder 8.2
Get extension locations.
Return value
array Array of extensions keyed by their path location.
1 call to LibraryDeriver::getExtensionLocations()
- LibraryDeriver::getHostExtension in modules/
wingsuit_ui_patterns/ src/ Plugin/ Deriver/ LibraryDeriver.php - Get extension name that hosts the given YAML definition file.
File
- modules/
wingsuit_ui_patterns/ src/ Plugin/ Deriver/ LibraryDeriver.php, line 237
Class
- LibraryDeriver
- Class LibraryDeriver.
Namespace
Drupal\wingsuit_ui_patterns\Plugin\DeriverCode
protected function getExtensionLocations() {
/** @var \Drupal\Core\Extension\Extension[] $extensions */
if (empty($this->extensionLocations)) {
$extensions = $this->extensionDiscovery
->scan('theme') + $this->extensionDiscovery
->scan('module');
foreach ($extensions as $name => $extension) {
$this->extensionLocations[$this->root . DIRECTORY_SEPARATOR . $extension
->getPath()] = $name;
}
}
return $this->extensionLocations;
}