You are here

public function SkipOp::process in Drupal 8

Same name and namespace in other branches
  1. 9 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);
}