function ScaffoldResult::__construct

Same name in other branches
  1. 9 composer/Plugin/Scaffold/Operations/ScaffoldResult.php \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult::__construct()
  2. 8.9.x composer/Plugin/Scaffold/Operations/ScaffoldResult.php \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult::__construct()
  3. 11.x composer/Plugin/Scaffold/Operations/ScaffoldResult.php \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult::__construct()

ScaffoldResult constructor.

Parameters

\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $destination: The path to the scaffold file that was processed.

bool $isManaged: (optional) Whether this result is managed. Defaults to FALSE.

File

composer/Plugin/Scaffold/Operations/ScaffoldResult.php, line 36

Class

ScaffoldResult
Record the result of a scaffold operation.

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

public function __construct(ScaffoldFilePath $destination, $isManaged = FALSE) {
    $this->destination = $destination;
    $this->managed = $isManaged;
}

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