function drush_outputformat::supported_data_types

8.0.x outputformat.drush.inc drush_outputformat::supported_data_types($metadata = NULL)
6.x outputformat.drush.inc drush_outputformat::supported_data_types($metadata = NULL)
7.x outputformat.drush.inc drush_outputformat::supported_data_types($metadata = NULL)
master outputformat.drush.inc drush_outputformat::supported_data_types($metadata = NULL)
1 call to drush_outputformat::supported_data_types()

File

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

Class

drush_outputformat
Interface for output format engines.

Code

function supported_data_types($metadata = NULL) {
  if ($metadata == NULL) {
    $metadata = $this->engine_config;
  }
  if (isset($metadata['metameta']['engine-info']['engine-capabilities'])) {
    return $metadata['metameta']['engine-info']['engine-capabilities'];
  }
  if (isset($metadata['engine-info']['engine-capabilities'])) {
    return $metadata['engine-info']['engine-capabilities'];
  }
  return array();
}