public function ThemeGenerator::getBaseThemeInfoYml in AT Tools 8.2
Same name and namespace in other branches
- 8.3 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::getBaseThemeInfoYml()
Return the base themes info yml.
Return value
array
1 call to ThemeGenerator::getBaseThemeInfoYml()
- ThemeGenerator::__construct in at_theme_generator/
src/ Theme/ ThemeGenerator.php - Generator constructor.
File
- at_theme_generator/
src/ Theme/ ThemeGenerator.php, line 544
Class
- ThemeGenerator
- Generator form.
Namespace
Drupal\at_theme_generator\ThemeCode
public function getBaseThemeInfoYml() {
$base_theme = $this->info['base theme'];
if ($this->sub_theme_type === 'skin') {
$base_theme = $this->skin_base;
}
return \Drupal::service('info_parser')
->parse(drupal_get_path('theme', $base_theme) . '/' . $base_theme . '.info.yml');
}