function OperationInterface::scaffoldOverExistingTarget
Same name in other branches
- 9 composer/Plugin/Scaffold/Operations/OperationInterface.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface::scaffoldOverExistingTarget()
- 8.9.x composer/Plugin/Scaffold/Operations/OperationInterface.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface::scaffoldOverExistingTarget()
- 10 composer/Plugin/Scaffold/Operations/OperationInterface.php \Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface::scaffoldOverExistingTarget()
Determines what to do if operation is used at same path as a previous op.
Default behavior is to scaffold this operation at the specified destination, ignoring whatever was there before.
Parameters
OperationInterface $existing_target: Existing file at the destination path that we should combine with.
Return value
OperationInterface The op to use at this destination.
1 method overrides OperationInterface::scaffoldOverExistingTarget()
- AbstractOperation::scaffoldOverExistingTarget in composer/
Plugin/ Scaffold/ Operations/ AbstractOperation.php - Determines what to do if operation is used at same path as a previous op.
File
-
composer/
Plugin/ Scaffold/ Operations/ OperationInterface.php, line 51
Class
- OperationInterface
- Interface for scaffold operation objects.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public function scaffoldOverExistingTarget(OperationInterface $existing_target);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.