You are here

public function AppendOp::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()
  2. 9 composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()

Constructs an AppendOp.

Parameters

\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $prepend_path: The relative path to the prepend file.

\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $append_path: The relative path to the append file.

bool $force_append: TRUE if is okay to append to a file that was not scaffolded.

\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $default_path: 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\Operations

Code

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;
}