function ReplaceOp::generateContents
Load the scaffold contents or otherwise generate what is needed.
Return value
string The contents of the scaffold file.
Overrides AbstractOperation::generateContents
File
- 
              composer/Plugin/ Scaffold/ Operations/ ReplaceOp.php, line 53 
Class
- ReplaceOp
- Scaffold operation to copy or symlink from source to destination.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
protected function generateContents() {
  return file_get_contents($this->source
    ->fullPath());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
