function ReplaceOp::__construct
Constructs a ReplaceOp.
Parameters
\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $sourcePath: The relative path to the source file.
bool $overwrite: Whether to allow this scaffold file to overwrite files already at the destination. Defaults to TRUE.
File
- 
              composer/
Plugin/ Scaffold/ Operations/ ReplaceOp.php, line 45  
Class
- ReplaceOp
 - Scaffold operation to copy or symlink from source to destination.
 
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public function __construct(ScaffoldFilePath $sourcePath, $overwrite = TRUE) {
  $this->source = $sourcePath;
  $this->overwrite = $overwrite;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.