function Theme::__construct
Constructs a new updater.
Parameters
string $source: Directory to install from.
string $root: The root directory under which the project will be copied to if it's a new project. Usually this is the app root (the directory in which the Drupal site is installed).
Overrides Updater::__construct
File
-
core/
lib/ Drupal/ Core/ Updater/ Theme.php, line 20
Class
- Theme
- Defines a class for updating themes.
Namespace
Drupal\Core\UpdaterCode
public function __construct($source, $root) {
@trigger_error('The ' . __NAMESPACE__ . '\\Theme class is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED);
parent::__construct($source, $root);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.