function InstallStorage::getComponentFolder
Same name in other branches
- 9 core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::getComponentFolder()
- 8.9.x core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::getComponentFolder()
- 10 core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::getComponentFolder()
Get folder inside each component that contains the files.
Parameters
\Drupal\Core\Extension\Extension $extension: The Extension object for the component.
Return value
string The configuration folder name for this component.
1 call to InstallStorage::getComponentFolder()
- InstallStorage::getComponentNames in core/
lib/ Drupal/ Core/ Config/ InstallStorage.php - Get all configuration names and folders for a list of modules or themes.
File
-
core/
lib/ Drupal/ Core/ Config/ InstallStorage.php, line 250
Class
- InstallStorage
- Storage used by the Drupal installer.
Namespace
Drupal\Core\ConfigCode
protected function getComponentFolder(Extension $extension) {
return $extension->getPath() . '/' . $this->getCollectionDirectory();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.