You are here

protected function ConfigImportSubscriber::getThemeData in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php \Drupal\Core\EventSubscriber\ConfigImportSubscriber::getThemeData()

Gets theme data.

Return value

\Drupal\Core\Extension\Extension[]

2 calls to ConfigImportSubscriber::getThemeData()
ConfigImportSubscriber::validateDependencies in core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
Validates configuration being imported does not have unmet dependencies.
ConfigImportSubscriber::validateThemes in core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
Validates theme installations and uninstallations.

File

core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php, line 313

Class

ConfigImportSubscriber
Config import subscriber for config import events.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getThemeData() {
  if (!isset($this->themeData)) {
    $this->themeData = $this->themeHandler
      ->rebuildThemeData();
  }
  return $this->themeData;
}