Generator/Module.php
public function applyBuildListFilter(&$files, $build_list, $component_data) {
    // Case 1: everything was requested: don't filter!
    if (isset($build_list['all'])) {
      return;
    }

    $build_list = array_keys($build_list);

    foreach ($files as $key => $file_info) {
      if (!array_intersect($file_info['build_list_tags'], $build_list)) {
        unset($files[$key]);
      }
    }
  }
public function applyBuildListFilter(&$files, $build_list, $component_data) {
    // Case 1: everything was requested: don't filter!
    if (isset($build_list['all'])) {
      return;
    }

    $build_list = array_keys($build_list);

    foreach ($files as $key => $file_info) {
      if (!array_intersect($file_info['build_list_tags'], $build_list)) {
        unset($files[$key]);
      }
    }
  }
public function applyBuildListFilter ( & $ files , $ build_list , $ component_data ) { // Case 1: everything was requested: don't filter! if ( isset ( $ build_list [ 'all' ] ) ) { return ; } $ build_list = array_keys ( $ build_list ) ; foreach ( $ files as $ key => $ file_info ) { if ( ! array_intersect ( $ file_info [ 'build_list_tags' ] , $ build_list ) ) { unset ( $ files [ $ key ] ) ; } } }
Filter the file info array to just the requested build list.

WARNING: the keys in the $files array will be changing soon!

@param &$files
The array of built file info.
@param $build_list
The build list parameter from the original Generate component data.
@param $component_data
The original component data.
Filter the file info array to just the requested build list .