You are here

public function ThemeGenerator::getConfig in AT Tools 8.3

Same name and namespace in other branches
  1. 8.2 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::getConfig()

Return this themes source configuration files. We need to get the source themes config because the target copy may not yet exist.

Return value

array

1 call to ThemeGenerator::getConfig()
ThemeGenerator::__construct in at_theme_generator/src/Theme/ThemeGenerator.php
Generator constructor.

File

at_theme_generator/src/Theme/ThemeGenerator.php, line 210

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function getConfig() {
  if (file_exists($this->source['path'] . '/config')) {
    return $this->directoryOperations
      ->directoryScanRecursive($this->source['path'] . '/config');
  }
  else {
    return [];
  }
}