function ThemeExtensionList::getBaseThemes

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::getBaseThemes()
  2. 8.9.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::getBaseThemes()
  3. 11.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::getBaseThemes()

Finds all the base themes for the specified theme.

Themes can inherit templates and function implementations from earlier themes.

Parameters

\Drupal\Core\Extension\Extension[] $themes: An array of available themes.

string $theme: The name of the theme whose base we are looking for.

Return value

array Returns an array of all of the theme's ancestors; the first element's value will be NULL if an error occurred.

Deprecated

in drupal:10.3.0 and is removed from drupal:12.0.0. There is no direct replacement.

See also

https://www.drupal.org/node/3413187

File

core/lib/Drupal/Core/Extension/ThemeExtensionList.php, line 219

Class

ThemeExtensionList
Provides a list of available themes.

Namespace

Drupal\Core\Extension

Code

public function getBaseThemes(array $themes, $theme) {
    @trigger_error("\\Drupal\\Core\\Extension\\ThemeExtensionList::getBaseThemes() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. There is no direct replacement. See https://www.drupal.org/node/3413187", E_USER_DEPRECATED);
    return $this->doGetBaseThemes($themes, $theme);
}

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