Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Theme / UninstallCommand.php
index 7561aec24fbd317340b4ebb9b9ef1e44b6202fe0..b15930b54858f7322eca91084a0cd2ed25442f8e 100644 (file)
@@ -146,7 +146,7 @@ class UninstallCommand extends Command
                             )
                         );
 
-                        return;
+                        return 1;
                     }
 
                     if ($themeKey === $config->get('admin')) {
@@ -156,7 +156,7 @@ class UninstallCommand extends Command
                                 implode(',', $themesAvailable)
                             )
                         );
-                        return;
+                        return 1;
                     }
                 }
 
@@ -185,6 +185,8 @@ class UninstallCommand extends Command
                     )
                 );
                 drupal_set_message($e->getTranslatedMessage($this->getStringTranslation(), $theme), 'error');
+
+                return 1;
             }
         } elseif (empty($themesAvailable) && count($themesUninstalled) > 0) {
             if (count($themesUninstalled) > 1) {
@@ -222,5 +224,7 @@ class UninstallCommand extends Command
 
         // Run cache rebuild to see changes in Web UI
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+        return 0;
     }
 }