You are here

public function ThemeGenerator::getBaseThemeInfoYml in AT Tool 2.0 1.0.x

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 574

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

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');
}