N98\Magento\Command\Config\GetCommand::renderAsTable PHP Method

renderAsTable() protected method

protected renderAsTable ( Symfony\Component\Console\Output\OutputInterface $output, array $table, string $format )
$output Symfony\Component\Console\Output\OutputInterface
$table array
$format string
    protected function renderAsTable(OutputInterface $output, $table, $format)
    {
        $formattedTable = array();
        foreach ($table as $row) {
            $formattedTable[] = array($row['path'], $row['scope'], $row['scope_id'], $row['value']);
        }
        $this->getHelper('table')->setHeaders(array('Path', 'Scope', 'Scope-ID', 'Value'))->setRows($formattedTable)->renderByFormat($output, $formattedTable, $format);
    }