function SkipOp::process

Same name and namespace in other branches
  1. 8.9.x composer/Plugin/Scaffold/Operations/SkipOp.php \Drupal\Composer\Plugin\Scaffold\Operations\SkipOp::process()
  2. 10 composer/Plugin/Scaffold/Operations/SkipOp.php \Drupal\Composer\Plugin\Scaffold\Operations\SkipOp::process()
  3. 11.x composer/Plugin/Scaffold/Operations/SkipOp.php \Drupal\Composer\Plugin\Scaffold\Operations\SkipOp::process()

Process this scaffold operation.

Parameters

\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $destination: Scaffold file's destination path.

\Composer\IO\IOInterface $io: IOInterface to write to.

\Drupal\Composer\Plugin\Scaffold\ScaffoldOptions $options: Various options that may alter the behavior of the operation.

Return value

\Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult Result of the scaffolding operation.

Overrides OperationInterface::process

File

composer/Plugin/Scaffold/Operations/SkipOp.php, line 48

Class

SkipOp
Scaffold operation to skip a scaffold file (do nothing).

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

public function process(ScaffoldFilePath $destination, IOInterface $io, ScaffoldOptions $options) {
    $interpolator = $destination->getInterpolator();
    $io->write($interpolator->interpolate($this->message));
    return new ScaffoldResult($destination, FALSE);
}

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