You are here

public function ScaffoldFileInfo::process in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::process()
  2. 9 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::process()

Moves a single scaffold file from source to destination.

Parameters

\Composer\IO\IOInterface $io: The scaffold file to be processed.

\Drupal\Composer\Plugin\Scaffold\ScaffoldOptions $options: Assorted operational options, e.g. whether the destination should be a symlink.

Return value

\Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult The scaffold result.

File

composer/Plugin/Scaffold/ScaffoldFileInfo.php, line 122

Class

ScaffoldFileInfo
Data object that keeps track of one scaffold file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function process(IOInterface $io, ScaffoldOptions $options) {
  return $this
    ->op()
    ->process($this->destination, $io, $options);
}