function OperationInterface::scaffoldAtNewLocation
Same name in other branches
- 8.9.x composer/Plugin/Scaffold/Operations/OperationInterface.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface::scaffoldAtNewLocation()
- 10 composer/Plugin/Scaffold/Operations/OperationInterface.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface::scaffoldAtNewLocation()
- 11.x composer/Plugin/Scaffold/Operations/OperationInterface.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface::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.
1 method overrides OperationInterface::scaffoldAtNewLocation()
- AbstractOperation::scaffoldAtNewLocation in composer/
Plugin/ Scaffold/ Operations/ AbstractOperation.php - Determines what to do if operation is used without a previous operation.
File
-
composer/
Plugin/ Scaffold/ Operations/ OperationInterface.php, line 67
Class
- OperationInterface
- Interface for scaffold operation objects.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public function scaffoldAtNewLocation(ScaffoldFilePath $destination);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.