function ThemeHandlerInterface::getBaseThemes

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getBaseThemes()
  2. 10 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getBaseThemes()
  3. 11.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::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.

1 method overrides ThemeHandlerInterface::getBaseThemes()
ThemeHandler::getBaseThemes in core/lib/Drupal/Core/Extension/ThemeHandler.php
Finds all the base themes for the specified theme.

File

core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 95

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

public function getBaseThemes(array $themes, $theme);

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