(v9.2.7) If i want to install an additional theme this way nothing happens.
public function upgrade()
{
$pkg = parent::upgrade();
$projectTheme = Theme::getByHandle('project_theme');
if (!$projectTheme) {
// the process does get here in upgrading
Theme::add('project_theme', $pkg);
}
}
If i do a clean install both themes get installed:
public function install()
{
$pkg = parent::install();
Theme::add('first_theme', $pkg);
Theme::add('project_theme', $pkg);
}
What’s wrong here?