function ThemeInstallerInterface::getThemesToInstall

Determines the full set of themes corresponding to the given list.

Parameters

string[] $theme_list: An array of theme machine names.

bool $install_dependencies: (optional) If TRUE, dependencies are resolved and added to the returned list in the correct install order. If FALSE, the given list is returned unchanged.

Return value

string[] The machine names of the themes to install, including any resolved theme dependencies, ordered the way ::install() would install them. Already installed themes are omitted.

Throws

\Drupal\Core\Extension\Exception\UnknownExtensionException Thrown when a requested theme, or a theme dependency of one, does not exist.

\Drupal\Core\Extension\MissingDependencyException Thrown when a theme has an unmet or incompatible module dependency.

File

core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php, line 60

Class

ThemeInstallerInterface
Manages theme installation/uninstallation.

Namespace

Drupal\Core\Extension

Code

public function getThemesToInstall(array $theme_list, bool $install_dependencies = TRUE) : array;

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