W3cubDocs

/Drupal 8

public function ThemeHandlerInterface::getBaseThemes

public ThemeHandlerInterface::getBaseThemes(array $themes, $theme)

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.

File

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

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ThemeHandlerInterface.php/function/ThemeHandlerInterface::getBaseThemes/8.1.x