function AppendOp::__construct
Same name in other branches
- 9 composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()
- 8.9.x composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()
- 11.x composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()
Constructs an AppendOp.
Parameters
\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath|null $prepend_path: (optional) The relative path to the prepend file.
\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath|null $append_path: (optional) The relative path to the append file.
bool $force_append: (optional) TRUE if is okay to append to a file that was not scaffolded.
\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath|null $default_path: (optional) The relative path to the default data.
File
-
composer/
Plugin/ Scaffold/ Operations/ AppendOp.php, line 71
Class
- AppendOp
- Scaffold operation to add to the beginning and/or end of a scaffold file.
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsCode
public function __construct(?ScaffoldFilePath $prepend_path = NULL, ?ScaffoldFilePath $append_path = NULL, $force_append = FALSE, ?ScaffoldFilePath $default_path = NULL) {
$this->forceAppend = $force_append;
$this->prepend = $prepend_path;
$this->append = $append_path;
$this->default = $default_path;
$this->managed = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.