annotate core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php @ 13:5fb285c0d0e3

Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've been lucky to get away with this so far, as we don't support self-registration which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5 was vulnerable to.
author Chris Cannam
date Mon, 23 Apr 2018 09:33:26 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Drupal\Core\Extension;
Chris@0 4
Chris@0 5 /**
Chris@0 6 * Manages theme installation/uninstallation.
Chris@0 7 */
Chris@0 8 interface ThemeInstallerInterface {
Chris@0 9
Chris@0 10 /**
Chris@0 11 * Installs a given list of themes.
Chris@0 12 *
Chris@0 13 * @param array $theme_list
Chris@0 14 * An array of theme names.
Chris@0 15 * @param bool $install_dependencies
Chris@0 16 * (optional) If TRUE, dependencies will automatically be installed in the
Chris@0 17 * correct order. This incurs a significant performance cost, so use FALSE
Chris@0 18 * if you know $theme_list is already complete and in the correct order.
Chris@0 19 *
Chris@0 20 * @return bool
Chris@0 21 * Whether any of the given themes have been installed.
Chris@0 22 *
Chris@0 23 * @throws \Drupal\Core\Extension\ExtensionNameLengthException
Chris@0 24 * Thrown when the theme name is to long.
Chris@0 25 */
Chris@0 26 public function install(array $theme_list, $install_dependencies = TRUE);
Chris@0 27
Chris@0 28 /**
Chris@0 29 * Uninstalls a given list of themes.
Chris@0 30 *
Chris@0 31 * Uninstalling a theme removes all related configuration (like blocks) and
Chris@0 32 * invokes the 'themes_uninstalled' hook.
Chris@0 33 *
Chris@0 34 * @param array $theme_list
Chris@0 35 * The themes to uninstall.
Chris@0 36 *
Chris@0 37 * @throws \InvalidArgumentException
Chris@0 38 * Thrown when you uninstall an not installed theme.
Chris@0 39 *
Chris@0 40 * @see hook_themes_uninstalled()
Chris@0 41 */
Chris@0 42 public function uninstall(array $theme_list);
Chris@0 43
Chris@0 44 }