Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/InstallStorage.php \Drupal\Core\Config\InstallStorage::getComponentFolder()
  2. 9 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\Config

Code

protected function getComponentFolder(Extension $extension) {
  return $extension
    ->getPath() . '/' . $this
    ->getCollectionDirectory();
}