// Notify that we are appending, if there is append data.
if (!
empty($this->append
)) { $this->append->
addInterpolationData($interpolator, 'append'
);
$io->
write($interpolator->
interpolate(" - Append to <info>[dest-rel-path]</info> from <info>[append-rel-path]</info>"
));
} // Write the resulting data
file_put_contents($destination_path,
$this->
contents());
// Return a ScaffoldResult with knowledge of whether this file is managed.
return new ScaffoldResult($destination,
$this->managed
);
} /**
* {@inheritdoc}
*/
public function scaffoldOverExistingTarget(OperationInterface
$existing_target) { $this->originalContents =
$existing_target->
contents();
return $this;
} /**
* {@inheritdoc}
*/