You are here

public function ThemeInfo::__construct in AT Tools 8

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/Theme/ThemeInfo.php \Drupal\at_theme_generator\Theme\ThemeInfo::__construct()
  2. 8.2 at_theme_generator/src/Theme/ThemeInfo.php \Drupal\at_theme_generator\Theme\ThemeInfo::__construct()

Constructs a theme info object.

File

at_theme_generator/src/Theme/ThemeInfo.php, line 21
Contains \Drupal\at_theme_generator\Theme\ThemeInfo.

Class

ThemeInfo
ThemeSettingsInfo declares methods used to return theme info for use in theme-settings.php. Note the constructor calls system_rebuild_theme_data() which is not statically cached therefor only used in the backend, however it always returns fresh data.

Namespace

Drupal\at_theme_generator\Theme

Code

public function __construct() {
  $this->data = \Drupal::service('theme_handler')
    ->rebuildThemeData();
}