src/commands/ExtensionController.php
public function actionList($sort = true)
    {
        $sort = (bool) $sort;
        if ($sort) {
            ksort($this->extensions);
        }
        foreach ($this->extensions as $name => $extension) {
            if ($extension['is_active']) {
                $this->stdout('[active] ', Console::FG_GREEN);
            } else {
                $this->stdout('         ', Console::FG_RED);
            }
            $this->stdout(str_pad($name, 50, ' '));
            $this->stdout(' - ');
            $color = Console::FG_BLACK;
            switch ($extension['composer_type']) {
                case 'yii2-extension':
                    $color = Console::FG_BLUE;
                    break;
                case 'dotplant-extension':
                    $color = Console::FG_GREEN;
                    break;
            }
            $this->stdout($extension['composer_type'] . PHP_EOL, $color);
        }
        return 0;
    }
public function actionList($sort = true)
    {
        $sort = (bool) $sort;
        if ($sort) {
            ksort($this->extensions);
        }
        foreach ($this->extensions as $name => $extension) {
            if ($extension['is_active']) {
                $this->stdout('[active] ', Console::FG_GREEN);
            } else {
                $this->stdout('         ', Console::FG_RED);
            }
            $this->stdout(str_pad($name, 50, ' '));
            $this->stdout(' - ');
            $color = Console::FG_BLACK;
            switch ($extension['composer_type']) {
                case 'yii2-extension':
                    $color = Console::FG_BLUE;
                    break;
                case 'dotplant-extension':
                    $color = Console::FG_GREEN;
                    break;
            }
            $this->stdout($extension['composer_type'] . PHP_EOL, $color);
        }
        return 0;
    }
Lists installed extensions
@param bool $sort Sort extensions alphabetically
@return int