function ScaffoldFileInfo::process

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::process()
  2. 8.9.x composer/Plugin/Scaffold/ScaffoldFileInfo.php \Drupal\Composer\Plugin\Scaffold\ScaffoldFileInfo::process()
  3. 11.x 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.