class drush_outputformat_message

  1. 8.0.x commands/core/outputformat/message.inc drush_outputformat_message
  2. 6.x commands/core/outputformat/message.inc drush_outputformat_message
  3. 7.x commands/core/outputformat/message.inc drush_outputformat_message
  4. master commands/core/outputformat/message.inc drush_outputformat_message

Output formatter 'message'

Hierarchy

Expanded class hierarchy of drush_outputformat_message

Members

File

commands/core/outputformat/message.inc, line 20

View source
class drush_outputformat_message extends drush_outputformat {
  function format($data, $metadata) {
    $result = '';
    if (isset($metadata['message-template'])) {
      foreach ($data as $key => $value) {
        $data_for_dt['!' . $key] = $value;
      }
      $result = dt($metadata['message-template'], $data_for_dt);
    }
    return $result;
  }
}