interface ThemeInstallerInterface (View source)

Manages theme installation/uninstallation.

Methods

bool
install(array $theme_list, bool $install_dependencies = TRUE)

Installs a given list of themes.

uninstall(array $theme_list)

Uninstalls a given list of themes.

Details

bool install(array $theme_list, bool $install_dependencies = TRUE)

Installs a given list of themes.

Parameters

array $theme_list

An array of theme names.

bool $install_dependencies

(optional) If TRUE, dependencies will automatically be installed in the correct order. This incurs a significant performance cost, so use FALSE if you know $theme_list is already complete and in the correct order.

Return Value

bool

Whether any of the given themes have been installed.

Exceptions

ExtensionNameLengthException
UnknownExtensionException
MissingDependencyException

uninstall(array $theme_list)

Uninstalls a given list of themes.

Uninstalling a theme removes all related configuration (like blocks) and invokes the 'themes_uninstalled' hook.

Parameters

array $theme_list

The themes to uninstall.

Exceptions

UnknownExtensionException
InvalidArgumentException

See also

hook_themes_uninstalled()