function ActiveTheme::getBaseThemeExtensions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/ActiveTheme.php \Drupal\Core\Theme\ActiveTheme::getBaseThemeExtensions()
  2. 8.9.x core/lib/Drupal/Core/Theme/ActiveTheme.php \Drupal\Core\Theme\ActiveTheme::getBaseThemeExtensions()
  3. 11.x core/lib/Drupal/Core/Theme/ActiveTheme.php \Drupal\Core\Theme\ActiveTheme::getBaseThemeExtensions()

Returns an array of base theme extension objects keyed by name.

The order starts with the base theme of $this and ends with the root of the dependency chain. For most use cases, parent themes are expected to be called first, so this order needs to be reversed with array_reverse()

Return value

\Drupal\Core\Extension\Extension[]

File

core/lib/Drupal/Core/Theme/ActiveTheme.php, line 191

Class

ActiveTheme
Defines a theme and its information needed at runtime.

Namespace

Drupal\Core\Theme

Code

public function getBaseThemeExtensions() {
    return $this->baseThemeExtensions;
}

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