function AppendOp::__construct

Same name in other branches
  1. 8.9.x composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()
  2. 10 composer/Plugin/Scaffold/Operations/AppendOp.php \Drupal\Composer\Plugin\Scaffold\Operations\AppendOp::__construct()
  3. 11.x 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;
}

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