function make_generate_makefile_contents_yaml

8.0.x generate.contents.make.inc make_generate_makefile_contents_yaml($projects, $libraries, $core, $defaults)
master generate.contents.make.inc make_generate_makefile_contents_yaml($projects, $libraries, $core, $defaults)

Generate makefile contents in YAML format.

File

commands/make/generate.contents.make.inc, line 185
Functions for the generate makefile command.

Code

function make_generate_makefile_contents_yaml($projects, $libraries, $core, $defaults) {
  $info = array(
    'core' => $core,
    'api' => MAKE_API,
    'defaults' => $defaults,
    'projects' => $projects,
    'libraries' => $libraries,
  );

  $info = _make_generate_array_filter($info);
  $info = _make_generate_array_filter_key('_type', $info);
  $dumper = drush_load_engine('outputformat', 'yaml');
  $yaml = $dumper->format($info, array());

  return $yaml;
}