SkipOp.php in Drupal 8
File
composer/Plugin/Scaffold/Operations/SkipOp.php
View source
<?php
namespace Drupal\Composer\Plugin\Scaffold\Operations;
use Composer\IO\IOInterface;
use Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath;
use Drupal\Composer\Plugin\Scaffold\ScaffoldOptions;
class SkipOp extends AbstractOperation {
const ID = 'skip';
protected $message;
public function __construct($message = " - Skip <info>[dest-rel-path]</info>: disabled") {
$this->message = $message;
}
protected function generateContents() {
return '';
}
public function process(ScaffoldFilePath $destination, IOInterface $io, ScaffoldOptions $options) {
$interpolator = $destination
->getInterpolator();
$io
->write($interpolator
->interpolate($this->message));
return new ScaffoldResult($destination, FALSE);
}
}
Classes
Name |
Description |
SkipOp |
Scaffold operation to skip a scaffold file (do nothing). |