public function AbstractOperation::scaffoldAtNewLocation in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::scaffoldAtNewLocation()
- 9 composer/Plugin/Scaffold/Operations/AbstractOperation.php \Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation::scaffoldAtNewLocation()
Determines what to do if operation is used without a previous operation.
Default behavior is to scaffold this operation at the specified destination. Most operations overwrite rather than modify existing files, and therefore do not need to do anything special when there is no existing file.
Parameters
\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $destination: Scaffold file's destination path.
Return value
OperationInterface The op to use at this destination.
Overrides OperationInterface::scaffoldAtNewLocation
1 method overrides AbstractOperation::scaffoldAtNewLocation()
- AppendOp::scaffoldAtNewLocation in composer/
Plugin/ Scaffold/ Operations/ AppendOp.php - Determines what to do if operation is used without a previous operation.
File
- composer/
Plugin/ Scaffold/ Operations/ AbstractOperation.php, line 49
Class
- AbstractOperation
- Provides default behaviors for operations.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public function scaffoldAtNewLocation(ScaffoldFilePath $destination) {
return $this;
}