You are here

function ConfigPartialExportCommands::_print_table in Config Partial Export 8

Parameters

$rows:

bool $header:

array $widths:

null $handle:

Return value

mixed

File

src/Commands/ConfigPartialExportCommands.php, line 350

Class

ConfigPartialExportCommands
Defines Drush commands for the Search API.

Namespace

Drupal\config_partial_export\Commands

Code

function _print_table($rows, $header = FALSE, $widths = [], $handle = NULL) {
  $tbl = $this
    ->_drush_format_table($rows, $header, $widths);
  $output = $tbl
    ->getTable();
  if (!stristr(PHP_OS, 'WIN')) {
    $output = str_replace("\r\n", PHP_EOL, $output);
  }
  drush_print(rtrim($output), 0, $handle);
  return $tbl;
}