function ConfigImportSubscriber::getThemeData

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php \Drupal\Core\EventSubscriber\ConfigImportSubscriber::getThemeData()
  2. 8.9.x core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php \Drupal\Core\EventSubscriber\ConfigImportSubscriber::getThemeData()
  3. 10 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 344

Class

ConfigImportSubscriber
Config import subscriber for config import events.

Namespace

Drupal\Core\EventSubscriber

Code

protected function getThemeData() {
    if (!isset($this->themeData)) {
        $this->themeData = $this->themeList
            ->reset()
            ->getList();
    }
    return $this->themeData;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.