Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ReplaceOp.php

function ReplaceOp::__construct

Constructs a ReplaceOp.

Parameters

\Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $sourcePath: The relative path to the source file.

bool $overwrite: Whether to allow this scaffold file to overwrite files already at the destination. Defaults to TRUE.

File

composer/Plugin/Scaffold/Operations/ReplaceOp.php, line 45

Class

ReplaceOp
Scaffold operation to copy or symlink from source to destination.

Namespace

Drupal\Composer\Plugin\Scaffold\Operations

Code

public function __construct(ScaffoldFilePath $sourcePath, $overwrite = TRUE) {
    $this->source = $sourcePath;
    $this->overwrite = $overwrite;
}
RSS feed
Powered by Drupal