Magestead\Command\Index\ShowModeCommand::getCommand PHP Метод

getCommand() защищенный Метод

protected getCommand ( Config $config, $index ) : boolean | string
$config Magestead\Helper\Config
$index
Результат boolean | string
    protected function getCommand(Config $config, $index)
    {
        $type = $config->type;
        switch ($type) {
            case 'magento2':
                return "cd /var/www/public;bin/magento indexer:show-mode {$index}";
        }
        return false;
    }