->addArgument('theme', InputArgument::IS_ARRAY, $this->trans('commands.theme.install.options.module'))
->addOption(
'set-default',
- '',
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.theme.install.options.set-default')
);
if ($default && count($theme) > 1) {
$io->error($this->trans('commands.theme.install.messages.invalid-theme-default'));
- return;
+ return 1;
}
$themes = $this->themeHandler->rebuildThemeData();
)
);
drupal_set_message($e->getTranslatedMessage($this->getStringTranslation(), $theme), 'error');
+
+ return 1;
}
} elseif (empty($themesAvailable) && count($themesInstalled) > 0) {
if (count($themesInstalled) > 1) {
// Run cache rebuild to see changes in Web UI
$this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+ return 0;
}
}