Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Extension; | |
4 | |
5 /** | |
6 * Manages theme installation/uninstallation. | |
7 */ | |
8 interface ThemeInstallerInterface { | |
9 | |
10 /** | |
11 * Installs a given list of themes. | |
12 * | |
13 * @param array $theme_list | |
14 * An array of theme names. | |
15 * @param bool $install_dependencies | |
16 * (optional) If TRUE, dependencies will automatically be installed in the | |
17 * correct order. This incurs a significant performance cost, so use FALSE | |
18 * if you know $theme_list is already complete and in the correct order. | |
19 * | |
20 * @return bool | |
21 * Whether any of the given themes have been installed. | |
22 * | |
23 * @throws \Drupal\Core\Extension\ExtensionNameLengthException | |
24 * Thrown when the theme name is to long. | |
25 */ | |
26 public function install(array $theme_list, $install_dependencies = TRUE); | |
27 | |
28 /** | |
29 * Uninstalls a given list of themes. | |
30 * | |
31 * Uninstalling a theme removes all related configuration (like blocks) and | |
32 * invokes the 'themes_uninstalled' hook. | |
33 * | |
34 * @param array $theme_list | |
35 * The themes to uninstall. | |
36 * | |
37 * @throws \InvalidArgumentException | |
38 * Thrown when you uninstall an not installed theme. | |
39 * | |
40 * @see hook_themes_uninstalled() | |
41 */ | |
42 public function uninstall(array $theme_list); | |
43 | |
44 } |