function ComponentPluginManager::getScanDirectories
Same name in this branch
- 10 core/lib/Drupal/Core/Theme/ComponentPluginManager.php \Drupal\Core\Theme\ComponentPluginManager::getScanDirectories()
Same name in other branches
- 11.x core/modules/sdc/src/ComponentPluginManager.php \Drupal\sdc\ComponentPluginManager::getScanDirectories()
- 11.x core/lib/Drupal/Core/Theme/ComponentPluginManager.php \Drupal\Core\Theme\ComponentPluginManager::getScanDirectories()
Get the list of directories to scan.
Return value
string[] The directories.
1 call to ComponentPluginManager::getScanDirectories()
- ComponentPluginManager::getDiscovery in core/
modules/ sdc/ src/ ComponentPluginManager.php - Gets the plugin discovery.
File
-
core/
modules/ sdc/ src/ ComponentPluginManager.php, line 356
Class
- ComponentPluginManager
- Defines a plugin manager to deal with sdc.
Namespace
Drupal\sdcCode
private function getScanDirectories() : array {
$extension_directories = [
$this->moduleHandler
->getModuleDirectories(),
$this->themeHandler
->getThemeDirectories(),
];
return array_map(static fn(string $path) => rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'components', $extension_directories);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.