protected function ReplaceOp::generateContents in Drupal 8
Same name and namespace in other branches
- 9 composer/Plugin/Scaffold/Operations/ReplaceOp.php \Drupal\Composer\Plugin\Scaffold\Operations\ReplaceOp::generateContents()
- 10 composer/Plugin/Scaffold/Operations/ReplaceOp.php \Drupal\Composer\Plugin\Scaffold\Operations\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());
}