function ThemeInitialization::getExtensions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/ThemeInitialization.php \Drupal\Core\Theme\ThemeInitialization::getExtensions()
  2. 10 core/lib/Drupal/Core/Theme/ThemeInitialization.php \Drupal\Core\Theme\ThemeInitialization::getExtensions()
  3. 11.x core/lib/Drupal/Core/Theme/ThemeInitialization.php \Drupal\Core\Theme\ThemeInitialization::getExtensions()

Gets all extensions.

Return value

array

1 call to ThemeInitialization::getExtensions()
ThemeInitialization::resolveStyleSheetPlaceholders in core/lib/Drupal/Core/Theme/ThemeInitialization.php
Gets CSS file where tokens have been resolved.

File

core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 279

Class

ThemeInitialization
Provides the theme initialization logic.

Namespace

Drupal\Core\Theme

Code

protected function getExtensions() {
    if (!isset($this->extensions)) {
        $this->extensions = array_merge($this->moduleHandler
            ->getModuleList(), $this->themeHandler
            ->listInfo());
    }
    return $this->extensions;
}

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