/**
* Returns a map of all config object names and their folders.
*
* @return array
* An array mapping config object names with directories.
*/
protected function getAllFolders() { if (!
isset($this->folders
)) { $this->folders =
[];
$this->folders +=
$this->
getCoreNames();
// Perform an ExtensionDiscovery scan as we cannot use
// \Drupal\Core\Extension\ExtensionList::getPath() yet because the system
// module may not yet be enabled during install.
// @todo Remove as part of https://www.drupal.org/node/2186491
$listing =
new ExtensionDiscovery(\Drupal::
root());
if ($profile = \Drupal::
installProfile()) { $profile_list =
$listing->
scan('profile'
);
if (isset($profile_list[$profile])) { // Prime the \Drupal\Core\Extension\ExtensionList::getPathname static
// cache with the profile info file location so we can use
// \Drupal\Core\Extension\ExtensionList::getPath() on the active