function drush_outputformat::__construct

8.0.x outputformat.drush.inc drush_outputformat::__construct($config)
6.x outputformat.drush.inc drush_outputformat::__construct($config)
7.x outputformat.drush.inc drush_outputformat::__construct($config)
master outputformat.drush.inc drush_outputformat::__construct($config)

File

commands/core/outputformat.drush.inc, line 342
Core drush output formats.

Class

drush_outputformat
Interface for output format engines.

Code

function __construct($config) {
  $config += array(
    'column-widths' => array(),
    'field-mappings' => array(),
    'engine-info' => array(),
  );
  $config['engine-info'] += array(
    'machine-parsable' => FALSE,
    'metadata' => array(),
  );
  $config += $config['engine-info']['metadata'];
  $this->engine_config = $config;
}