You are here

protected function InstallStorage::getComponentFolder in Drupal 8

Same name and namespace in other branches
  1. 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 246

Class

InstallStorage
Storage used by the Drupal installer.

Namespace

Drupal\Core\Config

Code

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