use Drupal\Core\Extension\ThemeInstallerInterface;
use Drush\Commands\DrushCommands;
use Drush\Drush;
+use Drush\Utils\StringUtils;
class ThemeCommands extends DrushCommands
{
*/
public function enable($themes)
{
- $themes = _convert_csv_to_array($themes);
+ $themes = StringUtils::csvToArray($themes);
if (!$this->getThemeInstaller()->install($themes, true)) {
throw new \Exception('Unable to install themes.');
}
*/
public function uninstall($themes)
{
- $themes = _convert_csv_to_array($themes);
+ $themes = StringUtils::csvToArray($themes);
if (!$this->getThemeInstaller()->uninstall($themes, true)) {
throw new \Exception('Unable to uninstall themes.');
}