function ThemeInitialization::getExtensions

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

Gets all extensions.

Return value

array

File

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

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.