docs: function (paths, patternObject) {
    'use strict';
  
    // copy data object and remove from patternObject - this is for proper ordering of the pattern.yml file
    var patternData = patternObject.data;
    delete patternObject.data;
  
    // add this cloned pattern's source
    patternObject.cloneSource = {
      path: paths.folder,
      name: patternObject.name
    };
  
    // return the data object so it is the last property in the final file
    patternObject.data = patternData;
  
    return patternObject;
  }