Skip to content
Snippets Groups Projects

Resolve #3482425 "Improve test cover"

2 files
+ 104
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -177,20 +177,20 @@ final class NavigationExtraToolsController extends ControllerBase {
}
/**
* Run the cron.
* Rebuild the theme registry.
*/
public function runCron() {
$this->cron->run();
$this->messenger()->addMessage($this->t('Cron ran successfully.'));
public function themeRebuild() {
$this->themeRegistry->reset();
$this->messenger()->addMessage($this->t('Theme registry rebuilt.'));
return new RedirectResponse($this->reloadPage());
}
/**
* Rebuild the theme registry.
* Run the cron.
*/
public function themeRebuild() {
$this->themeRegistry->reset();
$this->messenger()->addMessage($this->t('Theme registry rebuilt.'));
public function runCron() {
$this->cron->run();
$this->messenger()->addMessage($this->t('Cron ran successfully.'));
return new RedirectResponse($this->reloadPage());
}
Loading