function drush_outputformat::supports_single_only

8.0.x outputformat.drush.inc drush_outputformat::supports_single_only($metadata = NULL)
6.x outputformat.drush.inc drush_outputformat::supports_single_only($metadata = NULL)
7.x outputformat.drush.inc drush_outputformat::supports_single_only($metadata = NULL)
master outputformat.drush.inc drush_outputformat::supports_single_only($metadata = NULL)
1 call to drush_outputformat::supports_single_only()
drush_outputformat_list::format in commands/core/outputformat/list.inc

File

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

Class

drush_outputformat
Interface for output format engines.

Code

function supports_single_only($metadata = NULL) {
  $supported = $this->supported_data_types($metadata);
  return (count($supported) == 1) && ($supported[0] == 'format-single');
}